Skip to content

fix(interledger-app): added pti_forms_url and pti_sdk_url to chart#409

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

fix(interledger-app): added pti_forms_url and pti_sdk_url to chart#409
bosbaber merged 1 commit intomainfrom
stephan/wal-763

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 08:47
Copilot AI review requested due to automatic review settings April 1, 2026 08:47
@bosbaber bosbaber changed the title fix(interledger-app): added pti_forms_url and pri_sdk_url to chart fix(interledger-app): added pti_forms_url and pti_sdk_url to chart Apr 1, 2026
@bosbaber bosbaber merged commit 6bc4251 into main Apr 1, 2026
18 checks passed
@bosbaber bosbaber deleted the stephan/wal-763 branch April 1, 2026 08:50
github-actions bot added a commit that referenced this pull request Apr 1, 2026
Automated chart versioning after merge of PR #409.
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 new PTI configuration values to the Interledger App backend Helm chart so PTI client-facing URLs can be provided via values and surfaced through the generated ConfigMap, with Helm validation updated accordingly.

Changes:

  • Added config.pti.sdk_url and config.pti.forms_url to the chart values and ConfigMap key mapping.
  • Updated Helm validation to require these fields when config.pti.enabled is "true".
  • Extended helm-unittest coverage to assert the new fields appear in rendered output and validation success cases.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
charts/interledger-app/backend/values.yaml Introduces PTI sdk_url / forms_url values and exposes them via ConfigMap key mapping.
charts/interledger-app/backend/templates/validate.yaml Adds the new PTI fields to the “required when enabled” validation list.
charts/interledger-app/backend/tests/validate.gatehub_test.yaml Updates validation success scenarios to include the new PTI required fields.
charts/interledger-app/backend/tests/deployment.server.configmaps_test.yaml Adds assertions that the rendered ConfigMap contains PTI_SDK_URL and PTI_FORMS_URL.

Comment on lines 219 to +223
base_url: "https://pti-base-url.com"
# Non-secret PTI SDK URL used by clients to load the PTI widget script.
sdk_url: "https://sdk.staging.fiant.io/latest/index.js"
# Non-secret PTI forms URL used by clients to host PTI widget forms.
forms_url: "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 default PTI URLs point at FIANT staging endpoints. If a deploy enables PTI but forgets to override these values, clients could inadvertently load a staging widget script/forms in production. Consider using empty or clearly non-routable/example placeholders here (and rely on validate.yaml to enforce setting them when PTI is enabled).

Suggested change
base_url: "https://pti-base-url.com"
# Non-secret PTI SDK URL used by clients to load the PTI widget script.
sdk_url: "https://sdk.staging.fiant.io/latest/index.js"
# Non-secret PTI forms URL used by clients to host PTI widget forms.
forms_url: "https://forms.staging.fiant.io"
base_url: "https://pti-base-url.example.invalid"
# Non-secret PTI SDK URL used by clients to load the PTI widget script.
sdk_url: "https://pti-sdk.example.invalid/latest/index.js"
# Non-secret PTI forms URL used by clients to host PTI widget forms.
forms_url: "https://pti-forms.example.invalid"

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