Skip to content

feat: added config.gatehub.organization_id and validation tests#367

Merged
bosbaber merged 4 commits intomainfrom
stephan/wal-605
Mar 9, 2026
Merged

feat: added config.gatehub.organization_id and validation tests#367
bosbaber merged 4 commits intomainfrom
stephan/wal-605

Conversation

@bosbaber
Copy link
Collaborator

@bosbaber bosbaber commented Mar 6, 2026

  • added Gatehub organization id as configuration at config.gatehub.organization_id
  • added some validation tests so that we can detect problems early

This pull request adds stricter validation and configuration improvements for Gatehub integration in the Helm chart for the backend service. The main focus is to ensure that all required Gatehub configuration values are explicitly set when Gatehub integration is enabled, and to improve the handling and testing of these values.

Configuration validation and enforcement:

  • Added a Helm template (validate.yaml) that checks if config.gatehub.enabled is true, and fails deployment if any required Gatehub configuration values (such as api_base_url, organization_id, or client IDs) are missing or empty.

Gatehub configuration updates:

  • Updated values.yaml to explicitly include all required Gatehub configuration fields, including enabled, organization_id, and card_account_product_code, ensuring they are present and can be set per environment.
  • Added GATEHUB_ORGANIZATION_ID to the configMaps section in values.yaml, mapping the environment variable to the corresponding config value.

Testing improvements:

  • Added a test case to deployment.server.configmaps_test.yaml to verify that GATEHUB_ORGANIZATION_ID is correctly set in the generated ConfigMap when provided in the values.

@bosbaber bosbaber self-assigned this Mar 6, 2026
@bosbaber bosbaber requested a review from a team as a code owner March 6, 2026 09:30
Copilot AI review requested due to automatic review settings March 6, 2026 09:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Gatehub configuration surface area and Helm-side validation for the interledger-app/backend chart, aiming to fail fast when Gatehub integration is enabled but required settings are missing.

Changes:

  • Introduces config.gatehub.organization_id and maps it into the rendered ConfigMap as GATEHUB_ORGANIZATION_ID.
  • Adds a new templates/validate.yaml gate to fail rendering when config.gatehub.enabled is true and required Gatehub fields are empty.
  • Extends helm-unittest coverage to assert GATEHUB_ORGANIZATION_ID is emitted when configured.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
charts/interledger-app/backend/values.yaml Adds Gatehub fields and configMap mapping for GATEHUB_ORGANIZATION_ID.
charts/interledger-app/backend/tests/deployment.server.configmaps_test.yaml Adds a unit test asserting GATEHUB_ORGANIZATION_ID appears in the ConfigMap data.
charts/interledger-app/backend/templates/validate.yaml New render-time validation that fails when Gatehub is enabled but required values are empty.
charts/interledger-app/backend/before.delme.yaml Removes a large generated/output artifact file.

@bosbaber bosbaber merged commit fea7b35 into main Mar 9, 2026
16 checks passed
@bosbaber bosbaber deleted the stephan/wal-605 branch March 9, 2026 09:27
github-actions bot added a commit that referenced this pull request Mar 9, 2026
Automated chart versioning after merge of PR #367.
This PR updates Chart.yaml versions, packages updated charts into
docs/interledger,
and regenerates the Helm index.

Co-authored-by: bosbaber <1615407+bosbaber@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants