Skip to content

fix(interledger-app): added PTI env variables for protea#411

Merged
bosbaber merged 1 commit intomainfrom
stephan/wal-764
Apr 1, 2026
Merged

fix(interledger-app): added PTI env variables for protea#411
bosbaber merged 1 commit intomainfrom
stephan/wal-764

Conversation

@bosbaber
Copy link
Copy Markdown
Collaborator

@bosbaber bosbaber commented Apr 1, 2026

No description provided.

@bosbaber bosbaber self-assigned this Apr 1, 2026
@bosbaber bosbaber requested a review from a team as a code owner April 1, 2026 10:20
Copilot AI review requested due to automatic review settings April 1, 2026 10:20
@bosbaber bosbaber merged commit 41b190e into main Apr 1, 2026
18 checks passed
@bosbaber bosbaber deleted the stephan/wal-764 branch April 1, 2026 10:20
github-actions bot added a commit that referenced this pull request Apr 1, 2026
Automated chart versioning after merge of PR #411.
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>
Copy link
Copy Markdown
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 PTI (FIANT) configuration to the interledger-app/frontend Helm chart so the Protea frontend can be configured via ConfigMap-driven environment variables.

Changes:

  • Introduces config.pti values (client_id, sdk_url, forms_url) in the frontend chart defaults.
  • Exposes PTI settings via new ConfigMap keys: PTI_CLIENT_ID, PTI_SDK_URL, PTI_FORMS_URL.
  • Adds helm-unittest assertions to validate PTI keys appear in the rendered ConfigMap.

Reviewed changes

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

File Description
charts/interledger-app/frontend/values.yaml Adds config.pti defaults and maps them into the server ConfigMap content map.
charts/interledger-app/frontend/tests/deployment_configmap_test.yaml Adds helm-unittest cases asserting PTI ConfigMap keys are rendered.

Comment on lines +47 to +49
# PTI widget script URL override; defaults to staging endpoint.
sdk_url: "https://sdk.staging.fiant.io/latest/index.js"
# PTI widget forms host URL override; defaults to staging endpoint.
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

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

The comments for sdk_url / forms_url say these are "URL override; defaults to staging endpoint", but the values here are actually setting the chart defaults to the staging URLs. Consider rewording to avoid implying a different default (e.g., describe them as the default staging endpoints and that they can be overridden via values).

Suggested change
# PTI widget script URL override; defaults to staging endpoint.
sdk_url: "https://sdk.staging.fiant.io/latest/index.js"
# PTI widget forms host URL override; defaults to staging endpoint.
# Default PTI widget script URL (staging endpoint); can be overridden via values.
sdk_url: "https://sdk.staging.fiant.io/latest/index.js"
# Default PTI widget forms host URL (staging endpoint); can be overridden via values.

Copilot uses AI. Check for mistakes.
Comment on lines +64 to +77
sdk_url: "https://sdk.staging.fiant.io/latest/index.js"
asserts:
- equal:
path: data.PTI_SDK_URL
value: "https://sdk.staging.fiant.io/latest/index.js"
- it: 'should contain PTI_FORMS_URL in data'
set:
config:
pti:
forms_url: "https://forms.staging.fiant.io"
asserts:
- equal:
path: data.PTI_FORMS_URL
value: "https://forms.staging.fiant.io"
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

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

The new helm-unittest cases for PTI_SDK_URL and PTI_FORMS_URL set the values to the same URLs already defined as defaults in values.yaml, so the tests won't catch a broken/ignored override path. Use non-default values in set: (and assert those) to ensure overriding via config.pti.* is actually wired correctly.

Suggested change
sdk_url: "https://sdk.staging.fiant.io/latest/index.js"
asserts:
- equal:
path: data.PTI_SDK_URL
value: "https://sdk.staging.fiant.io/latest/index.js"
- it: 'should contain PTI_FORMS_URL in data'
set:
config:
pti:
forms_url: "https://forms.staging.fiant.io"
asserts:
- equal:
path: data.PTI_FORMS_URL
value: "https://forms.staging.fiant.io"
sdk_url: "https://sdk.custom.example/latest/index.js"
asserts:
- equal:
path: data.PTI_SDK_URL
value: "https://sdk.custom.example/latest/index.js"
- it: 'should contain PTI_FORMS_URL in data'
set:
config:
pti:
forms_url: "https://forms.custom.example"
asserts:
- equal:
path: data.PTI_FORMS_URL
value: "https://forms.custom.example"

Copilot uses AI. Check for mistakes.
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.

2 participants