Skip to content

[ANCHOR-1206] Carry forward security headers for Gateway API migration - #1940

Merged
JiahuiWho merged 1 commit into
developfrom
anchor-1206-add-gateway-responseHeader
May 14, 2026
Merged

JiahuiWho merged 1 commit into
developfrom
anchor-1206-add-gateway-responseHeader

Conversation

@JiahuiWho

Copy link
Copy Markdown
Contributor

Description

  • adds an httpRoute.responseHeaders values block that emits a Gateway API filter to set security response headers
  • Explicit namespace + sectionName on parentRefs when using the chart-managed Gateway

Context

The first migration PR dropped the existing ingress.responseHeaders block.
Adding namespace + sectionName on parentRefs is purely a consistency fix to match the established Gateway API pattern.

Testing

  • helm lint passes for all three charts.
  • helm template with Gateway API enabled.

Documentation

N/A

Known limitations

N/A

@JiahuiWho
JiahuiWho marked this pull request as ready for review May 14, 2026 16:35
Copilot AI review requested due to automatic review settings May 14, 2026 16:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR restores security response headers that were dropped during the Ingress→Gateway API migration, by re-introducing them as Gateway API ResponseHeaderModifier filters on each chart's HTTPRoute. It also adds explicit namespace and sectionName to parentRefs when the chart-managed Gateway is used, for consistency with the existing Gateway API pattern.

Changes:

  • Add httpRoute.responseHeaders values key (default {}) to the three Helm charts.
  • Render a ResponseHeaderModifier filter on the HTTPRoute rule when responseHeaders is non-empty.
  • Set namespace (release namespace) and sectionName (first listener's name) on the chart-managed Gateway parentRefs entry.

Reviewed changes

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

Show a summary per file
File Description
helm-charts/sep24-reference-ui/values.yaml Adds responseHeaders: {} default under httpRoute.
helm-charts/sep24-reference-ui/templates/httproute.yaml Adds namespace/sectionName to chart-managed parentRef and renders ResponseHeaderModifier filter.
helm-charts/sep-service/values.yaml Adds responseHeaders: {} default under httpRoute.
helm-charts/sep-service/templates/sepserver-httproute.yaml Same parentRef + filter additions as above.
helm-charts/reference-server/values.yaml Adds responseHeaders: {} default under httpRoute.
helm-charts/reference-server/templates/httproute.yaml Same parentRef + filter additions as above.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JiahuiWho
JiahuiWho merged commit dc1951b into develop May 14, 2026
21 of 25 checks passed
@JiahuiWho
JiahuiWho deleted the anchor-1206-add-gateway-responseHeader branch May 14, 2026 17:58
amandagonsalves added a commit that referenced this pull request Jun 8, 2026
### Description

Merges `release/4.4.0` into `main` for the 4.4.0 release.

### Context

- **[ANCHOR-1215]** Fix SEP-12 IDOR via unvalidated customer `id` —
prevents cross-customer KYC disclosure and payout destination overwrite
(#1946)
- **[ANCHOR-1943]** Fix RPC observer DoS via malformed Soroban transfer
event (#1944)
- **[ANCHOR-1939]** Add per-client event isolation and ambiguous payment
routing safety (#1941, #1942)
- **[ANCHOR-1934]** Enforce single-use on SEP-38 quotes (#1935)
- **[ANCHOR-1206]** Add Gateway API support to Helm charts and carry
forward security headers (#1936, #1940)
- **[Chore]** Bump Soroban SDK from v22 to v26 (#1937)
- **[Chore]** Bump version to 4.4.0


[ANCHOR-1215]:
https://stellarorg.atlassian.net/browse/ANCHOR-1215?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[ANCHOR-1206]:
https://stellarorg.atlassian.net/browse/ANCHOR-1206?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
amandagonsalves added a commit that referenced this pull request Jun 8, 2026
### Description

Merges main into `develop` for the 4.4.0 release.

### Context

- **[ANCHOR-1215]** Fix SEP-12 IDOR via unvalidated customer `id` —
prevents cross-customer KYC disclosure and payout destination overwrite
(#1946)
- **[ANCHOR-1943]** Fix RPC observer DoS via malformed Soroban transfer
event (#1944)
- **[ANCHOR-1939]** Add per-client event isolation and ambiguous payment
routing safety (#1941, #1942)
- **[ANCHOR-1934]** Enforce single-use on SEP-38 quotes (#1935)
- **[ANCHOR-1206]** Add Gateway API support to Helm charts and carry
forward security headers (#1936, #1940)
- **[Chore]** Bump Soroban SDK from v22 to v26 (#1937)
- **[Chore]** Bump version to 4.4.0


[ANCHOR-1215]:
https://stellarorg.atlassian.net/browse/ANCHOR-1215?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[ANCHOR-1206]:
https://stellarorg.atlassian.net/browse/ANCHOR-1206?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
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.

4 participants