Skip to content

fix(translator): stop seeding api_key_auth from the first keyed route - #10190

Merged
zhaohuabing merged 3 commits into
envoyproxy:mainfrom
johnl-amd:fix-api-key-auth-listener-config
Oct 10, 2026
Merged

zhaohuabing merged 3 commits into
envoyproxy:mainfrom
johnl-amd:fix-api-key-auth-listener-config

Conversation

@johnl-amd

@johnl-amd johnl-amd commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Editing the API keys on one route can kill in-flight requests on unrelated routes that happen
to share the same listener.

Here is why. The api_key_auth filter goes on the listener once, disabled, and each route
switches it on through typed_per_filter_config with its own credentials. The listener copy is
meant to be inert, and there is a comment in patchHCM saying exactly that: "the HCM-level
filter config doesn't matter since it is overridden at the route level". But it was not built
empty. It was built from whichever route happened to come first in the list.

So one arbitrary route's credentials end up living in the listener. Changing keys on a route is
normally a cheap route-only RDS update, but for that one unlucky route it rewrites the listener
instead. Envoy then swaps the filter chain, drains the old one, and every long-lived request on
that listener goes down with it, including requests on routes that have nothing to do with the
policy you just edited. Which route draws the short straw is purely an artifact of ordering, so
from the outside it looks random.

The fix is to build the listener filter from an empty ApiKeyAuth. Routes already supply their
own credentials and key sources, so nothing is lost. Per-route configs are untouched.

Three notes for reviewers:

  • The listener config loses forwarding too. That looks riskier than it is. Envoy initialises
    forwarding_ unconditionally from proto_config.forwarding(), so the route-level value is
    always in play and the listener's copy was already dead for every route. It is a no-op.
  • One edge case this changes: a route whose credentialRefs resolve to no credentials at all
    used to fall back to the listener's. With the listener empty it now returns 401. You can get
    into that state today, since credentialRefs has no minItems and the referenced Secret is
    only checked for existence.
  • That "overridden at the route level" comment is not quite right, and there are two more like
    it on patchRoute. Envoy merges the two levels field by field rather than replacing one with
    the other, which is the whole reason this bug exists. Corrected in the same commit.

I kept the single shared filter and emptied it, rather than going the basicauth.go route of
one filter per route, since it is the smaller change and matches what cors.go and csrf.go
already do.

Validation:

  • The new unit test fails on main, where the listener carries client-1 / key1 from the
    first route, and passes with this change.
  • The regenerated api-key-auth.listeners.yaml shows the listener filter losing credentials,
    keySources and forwarding, while every per-route config in api-key-auth.routes.yaml
    stays exactly as it was.
  • Checked the churn claim directly with egctl experimental translate. Two keyed routes on one
    listener, translated once with a single key on the first route and again with a second key
    added. On main the listener output differs between the two runs, because the added
    credential lands in the listener-level config. With this change the listener output is
    byte-identical and the new credential appears only in the route's own
    typed_per_filter_config.
  • go test ./internal/xds/translator/..., make gen-check, and the repository-pinned
    golangci-lint for the changed package all pass locally, as do yamllint and codespell on
    the changed files and the release-notes filename check.

Which issue(s) this PR fixes: No linked issue.


PR Checklist

  • Authorship & ownership: Reviewed in full; I understand how and why the change works and take responsibility for it.
  • DCO: All commits are signed off.
  • API agreed first: N/A: no changes under /api.
  • Required checks pass: make gen-check, the repository-pinned golangci-lint for the changed package, the release-notes filename check, and the package unit tests pass locally. Full CI lint and the coverage build remain pending.
  • Tests added/updated: api_key_auth_test.go adds three cases covering the listener-level config, the no-API-key-route case, and the already-present filter case.
  • Docs: N/A: no user-facing API or configuration changes.
  • Release notes: Added release-notes/current/bug_fixes/10190-api-key-auth-listener-churn.md; the repository filename check passes.
  • Generated files committed: Golden testdata regenerated; make gen-check is clean.
  • Scope & compatibility: Limited to the listener-level filter config; no API change and no change to how a route authenticates.
  • Codex review: Not requested.
  • Copilot review: Not requested.

The listener-level api_key_auth filter is emitted disabled and switched on per
route through typed_per_filter_config, but it was built from the first route on
the listener that uses API key authentication.

That publishes one route's credentials in the listener, so adding or rotating a
key on that route rewrites the listener. Envoy then replaces the filter chain
and drains the superseded one, terminating long-lived requests on every route of
the listener. The same change on any other route is a route-only update that
costs nothing, so which route pays is an artifact of ordering.

Build the listener-level filter from an empty config instead. The per route
configs are unchanged.

Signed-off-by: John Lybeck <john.lybeck@amd.com>
@netlify

netlify Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit d362be9
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6ac88e4b9457c4000826eba1
😎 Deploy Preview https://deploy-preview-10190--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: John Lybeck <john.lybeck@amd.com>
@johnl-amd
johnl-amd marked this pull request as ready for review October 6, 2026 13:28
@johnl-amd
johnl-amd requested a review from a team as a code owner October 6, 2026 13:28
@zirain zirain added this to the v1.10.0-rc.1 Release milestone Oct 7, 2026
@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.57%. Comparing base (65dd981) to head (d362be9).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
internal/xds/translator/api_key_auth.go 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10190      +/-   ##
==========================================
+ Coverage   81.51%   81.57%   +0.06%     
==========================================
  Files         266      266              
  Lines       41407    41565     +158     
==========================================
+ Hits        33753    33908     +155     
- Misses       7653     7656       +3     
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

zhaohuabing
zhaohuabing previously approved these changes Oct 8, 2026

@zhaohuabing zhaohuabing left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, with just a small nit on the release notes.

@zhaohuabing
zhaohuabing requested a review from a team October 8, 2026 03:13
zirain
zirain previously approved these changes Oct 9, 2026
Signed-off-by: John Lybeck <john.lybeck@amd.com>
@johnl-amd
johnl-amd dismissed stale reviews from zirain and zhaohuabing via d362be9 October 9, 2026 06:48
@envoyproxy envoyproxy deleted a comment from chatgpt-codex-connector Bot Oct 10, 2026

@zhaohuabing zhaohuabing left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for fixing this!

@zhaohuabing
zhaohuabing merged commit a276a22 into envoyproxy:main Oct 10, 2026
44 checks passed
kkk777-7 pushed a commit to kkk777-7/gateway that referenced this pull request Oct 24, 2026
…envoyproxy#10190)

* fix(translator): stop seeding api_key_auth from the first keyed route

The listener-level api_key_auth filter is emitted disabled and switched on per
route through typed_per_filter_config, but it was built from the first route on
the listener that uses API key authentication.

That publishes one route's credentials in the listener, so adding or rotating a
key on that route rewrites the listener. Envoy then replaces the filter chain
and drains the superseded one, terminating long-lived requests on every route of
the listener. The same change on any other route is a route-only update that
costs nothing, so which route pays is an artifact of ordering.

Build the listener-level filter from an empty config instead. The per route
configs are unchanged.

Signed-off-by: John Lybeck <john.lybeck@amd.com>

* docs: add release note for the api_key_auth listener fix

Signed-off-by: John Lybeck <john.lybeck@amd.com>

* docs: reword the api_key_auth release note per review

Signed-off-by: John Lybeck <john.lybeck@amd.com>

---------

Signed-off-by: John Lybeck <john.lybeck@amd.com>
kkk777-7 added a commit that referenced this pull request Oct 24, 2026
* fix(infrastructure): mount writable /tmp on the shutdown-manager (#10120)

* fix(infrastructure): mount writable /tmp on the shutdown-manager

The shutdown-manager signals drain completion by creating
/tmp/shutdown-ready. Since the fix for #4881, the controller replicates
the user-provided Envoy container securityContext onto the
shutdown-manager. When that securityContext sets
readOnlyRootFilesystem: true, the shutdown-manager can no longer create
the file, the Envoy preStop hook never gets a 200, the kubelet logs
FailedPreStopHook, and both containers are SIGKILLed after the full
grace period, making every proxy pod deletion take the full
terminationGracePeriodSeconds instead of the drain duration.

Mount a dedicated writable emptyDir at /tmp on the shutdown-manager
(same approach as the writable wasm-cache emptyDir added for the
control plane in #9069). The user's securityContext replication is
preserved (custom runAsUser, capabilities, readOnlyRootFilesystem: true
all keep working), so hardened deployments no longer break graceful
shutdown.

Fixes #10119

Signed-off-by: Clement Phu <clement.phu@hotmail.fr>

* fix(shutdown-manager): clear stale shutdown ready marker at startup

An emptyDir volume persists across container restarts within the same
pod, so a /tmp/shutdown-ready marker created by a previous drain could
short-circuit the next drain sequence. Remove the marker when the
shutdown manager starts.

Signed-off-by: Clement Phu <clement.phu@hotmail.fr>

* fix(infrastructure): combine volume appends to satisfy gocritic

Address the appendCombine lint failure reported by CI.

Signed-off-by: Clement Phu <clement.phu@hotmail.fr>

---------

Signed-off-by: Clement Phu <clement.phu@hotmail.fr>

* fix(message): release discarded coalesced updates (#10144)

* [envoy-gateway] Release discarded coalesced snapshots [ci changed_files]

Signed-off-by: Cooper Gamble <cooper@openai.com>

* [envoy-gateway] Note coalesced update retention fix [ci changed_files]

Signed-off-by: Cooper Gamble <cooper@openai.com>

---------

Signed-off-by: Cooper Gamble <cooper@openai.com>

* fix(translator): use own route config name for TLS listeners sharing port with HTTP (#10171)

* fix(translator): use own route config name for TLS listeners sharing a port with HTTP

When an HTTP listener shares a container port with HTTPS listeners and is translated first, HTTPS virtual hosts ended up in its RouteConfiguration while their own filter chains referenced route configs that never existed. Default filter chain lookup only applies to plain HTTP listeners.

Fixes #10170

Signed-off-by: stillya <st.ilya.101@gmail.com>

* docs: add release note for #10171

Signed-off-by: stillya <st.ilya.101@gmail.com>

---------

Signed-off-by: stillya <st.ilya.101@gmail.com>

* fix: handle EndpointSlices labelled with both a Service and a ServiceImport (#10192)

* fix: handle EndpointSlices labelled with both a Service and a ServiceImport

Fixes #10191

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Signed-off-by: Seiji Chew <seiji@exa.ai>

* release-notes: use PR number for MCS EndpointSlice fix

Signed-off-by: Seiji Chew <seiji@exa.ai>

---------

Signed-off-by: Seiji Chew <seiji@exa.ai>
Co-authored-by: Seiji Chew <seiji@exa.ai>

* fix(translator): stop seeding api_key_auth from the first keyed route (#10190)

* fix(translator): stop seeding api_key_auth from the first keyed route

The listener-level api_key_auth filter is emitted disabled and switched on per
route through typed_per_filter_config, but it was built from the first route on
the listener that uses API key authentication.

That publishes one route's credentials in the listener, so adding or rotating a
key on that route rewrites the listener. Envoy then replaces the filter chain
and drains the superseded one, terminating long-lived requests on every route of
the listener. The same change on any other route is a route-only update that
costs nothing, so which route pays is an artifact of ordering.

Build the listener-level filter from an empty config instead. The per route
configs are unchanged.

Signed-off-by: John Lybeck <john.lybeck@amd.com>

* docs: add release note for the api_key_auth listener fix

Signed-off-by: John Lybeck <john.lybeck@amd.com>

* docs: reword the api_key_auth release note per review

Signed-off-by: John Lybeck <john.lybeck@amd.com>

---------

Signed-off-by: John Lybeck <john.lybeck@amd.com>

* chore: bump golang.org/x/net to v0.60.0 (#10254)

Fixes CVE-2026-97032, CVE-2026-78659, CVE-2026-78660, CVE-2026-78663 and
CVE-2026-78669.

Signed-off-by: Hariharan Subramanian <hsubramanian@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c55c776d-397b-4a82-a279-d91e0e21e10d

* fix: route status condition order (#10183)

* fix(status): report route status conditions in a deterministic order

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* add release note

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

---------

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* fix(provider): index HTTPRouteFilters referenced only from backendRef filters (#10246)

* fix(provider): index HTTPRouteFilters referenced only from backendRef filters

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* renumber release note

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

---------

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* fix: record a BackendTrafficPolicy on a TCP or UDP route once (#10289)

A policy with mergeType is applied once per listener of each parentRef,
and a parentRef with a sectionName can name a listener another parentRef
already covers. The feature fields are only set when nil, but the policy
metadata was appended on every pass, so a TCP, TLS or UDP route attached
to the same Gateway twice carried the policy twice. The append now skips
a policy the route already records.

Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io>

* fix(status): match route parent status by parentRef and controllerName (#10327)

* fix(status): match route parent status by parentRef and controllerName

mergeRouteParentStatus matched old and new RouteParentStatus entries by
parentRef only. When another controller had written its own entry for
the same parentRef, that entry was replaced by our status, so the route
ended up with two entries of ours. The other controller then re-added
its entry, and every following merge added one more duplicate until
status.parents reached its maxItems of 32 and all further status writes
to the route were rejected.

Match entries by parentRef and controllerName, and append each new
entry only once so existing duplicates are collapsed on the next update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Freem <freemanovec@protonmail.com>

* Add release note for route parent status fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Freem <freemanovec@protonmail.com>

---------

Signed-off-by: Freem <freemanovec@protonmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix: report merged route policy status on the parentRef ancestor (#10315)

* fix: report merged route policy status on the parentRef ancestor

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* remove todo comments and dead code

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

---------

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
Co-authored-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>

* fix: make namespace watch cache ByObject entries deterministic (#10302)

* fix: make namespace watch cache ByObject entries deterministic

ByObject is keyed by object pointer, so the WatchesNamespaces() block added
a second entry for types already registered (Secret, ConfigMap, Service,
EndpointSlice, ServiceAccount, Deployment) and the cache kept one at random.
Replace the existing entry for the type instead, and grant EndpointSlice
read in the controller namespace for Gateway Namespace Mode with watch
namespaces.

Fixes #10271

Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com>

* test: regenerate helm golden for gateway-namespace-config-watch

Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com>

---------

Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com>

* fix(helm): grant controller namespace Secret/EndpointSlice read with watch.namespaces (#10377)

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* fix: not exist field

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* fix: generate testdata

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

---------

Signed-off-by: Clement Phu <clement.phu@hotmail.fr>
Signed-off-by: Cooper Gamble <cooper@openai.com>
Signed-off-by: stillya <st.ilya.101@gmail.com>
Signed-off-by: Seiji Chew <seiji@exa.ai>
Signed-off-by: John Lybeck <john.lybeck@amd.com>
Signed-off-by: Hariharan Subramanian <hsubramanian@microsoft.com>
Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io>
Signed-off-by: Freem <freemanovec@protonmail.com>
Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com>
Co-authored-by: Clement Phu <34369901+cleman95@users.noreply.github.com>
Co-authored-by: cooper-oai <cooper@openai.com>
Co-authored-by: Starchenko Ilya <st.ilya.101@gmail.com>
Co-authored-by: Seiji Chew <67301797+schew2381@users.noreply.github.com>
Co-authored-by: Seiji Chew <seiji@exa.ai>
Co-authored-by: Lybeck <john.lybeck@amd.com>
Co-authored-by: Hariharan Subramanian <105889062+hsubramanianaks@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
Co-authored-by: Freem <freemanovec@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Manish <69393822+manish-9245@users.noreply.github.com>
Copilot-Session: c55c776d-397b-4a82-a279-d91e0e21e10d
zirain pushed a commit to zirain/gateway that referenced this pull request Oct 25, 2026
…envoyproxy#10190)

* fix(translator): stop seeding api_key_auth from the first keyed route

The listener-level api_key_auth filter is emitted disabled and switched on per
route through typed_per_filter_config, but it was built from the first route on
the listener that uses API key authentication.

That publishes one route's credentials in the listener, so adding or rotating a
key on that route rewrites the listener. Envoy then replaces the filter chain
and drains the superseded one, terminating long-lived requests on every route of
the listener. The same change on any other route is a route-only update that
costs nothing, so which route pays is an artifact of ordering.

Build the listener-level filter from an empty config instead. The per route
configs are unchanged.

Signed-off-by: John Lybeck <john.lybeck@amd.com>

* docs: add release note for the api_key_auth listener fix

Signed-off-by: John Lybeck <john.lybeck@amd.com>

* docs: reword the api_key_auth release note per review

Signed-off-by: John Lybeck <john.lybeck@amd.com>

---------

Signed-off-by: John Lybeck <john.lybeck@amd.com>
Signed-off-by: zirain <zirain2009@gmail.com>
zirain added a commit that referenced this pull request Oct 25, 2026
* fix(infrastructure): mount writable /tmp on the shutdown-manager (#10120)

* fix(infrastructure): mount writable /tmp on the shutdown-manager

The shutdown-manager signals drain completion by creating
/tmp/shutdown-ready. Since the fix for #4881, the controller replicates
the user-provided Envoy container securityContext onto the
shutdown-manager. When that securityContext sets
readOnlyRootFilesystem: true, the shutdown-manager can no longer create
the file, the Envoy preStop hook never gets a 200, the kubelet logs
FailedPreStopHook, and both containers are SIGKILLed after the full
grace period, making every proxy pod deletion take the full
terminationGracePeriodSeconds instead of the drain duration.

Mount a dedicated writable emptyDir at /tmp on the shutdown-manager
(same approach as the writable wasm-cache emptyDir added for the
control plane in #9069). The user's securityContext replication is
preserved (custom runAsUser, capabilities, readOnlyRootFilesystem: true
all keep working), so hardened deployments no longer break graceful
shutdown.

Fixes #10119

Signed-off-by: Clement Phu <clement.phu@hotmail.fr>

* fix(shutdown-manager): clear stale shutdown ready marker at startup

An emptyDir volume persists across container restarts within the same
pod, so a /tmp/shutdown-ready marker created by a previous drain could
short-circuit the next drain sequence. Remove the marker when the
shutdown manager starts.

Signed-off-by: Clement Phu <clement.phu@hotmail.fr>

* fix(infrastructure): combine volume appends to satisfy gocritic

Address the appendCombine lint failure reported by CI.

Signed-off-by: Clement Phu <clement.phu@hotmail.fr>

---------

Signed-off-by: Clement Phu <clement.phu@hotmail.fr>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix(message): release discarded coalesced updates (#10144)

* [envoy-gateway] Release discarded coalesced snapshots [ci changed_files]

Signed-off-by: Cooper Gamble <cooper@openai.com>

* [envoy-gateway] Note coalesced update retention fix [ci changed_files]

Signed-off-by: Cooper Gamble <cooper@openai.com>

---------

Signed-off-by: Cooper Gamble <cooper@openai.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix(translator): use own route config name for TLS listeners sharing port with HTTP (#10171)

* fix(translator): use own route config name for TLS listeners sharing a port with HTTP

When an HTTP listener shares a container port with HTTPS listeners and is translated first, HTTPS virtual hosts ended up in its RouteConfiguration while their own filter chains referenced route configs that never existed. Default filter chain lookup only applies to plain HTTP listeners.

Fixes #10170

Signed-off-by: stillya <st.ilya.101@gmail.com>

* docs: add release note for #10171

Signed-off-by: stillya <st.ilya.101@gmail.com>

---------

Signed-off-by: stillya <st.ilya.101@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix: handle EndpointSlices labelled with both a Service and a ServiceImport (#10192)

* fix: handle EndpointSlices labelled with both a Service and a ServiceImport

Fixes #10191

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Signed-off-by: Seiji Chew <seiji@exa.ai>

* release-notes: use PR number for MCS EndpointSlice fix

Signed-off-by: Seiji Chew <seiji@exa.ai>

---------

Signed-off-by: Seiji Chew <seiji@exa.ai>
Co-authored-by: Seiji Chew <seiji@exa.ai>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix(translator): stop seeding api_key_auth from the first keyed route (#10190)

* fix(translator): stop seeding api_key_auth from the first keyed route

The listener-level api_key_auth filter is emitted disabled and switched on per
route through typed_per_filter_config, but it was built from the first route on
the listener that uses API key authentication.

That publishes one route's credentials in the listener, so adding or rotating a
key on that route rewrites the listener. Envoy then replaces the filter chain
and drains the superseded one, terminating long-lived requests on every route of
the listener. The same change on any other route is a route-only update that
costs nothing, so which route pays is an artifact of ordering.

Build the listener-level filter from an empty config instead. The per route
configs are unchanged.

Signed-off-by: John Lybeck <john.lybeck@amd.com>

* docs: add release note for the api_key_auth listener fix

Signed-off-by: John Lybeck <john.lybeck@amd.com>

* docs: reword the api_key_auth release note per review

Signed-off-by: John Lybeck <john.lybeck@amd.com>

---------

Signed-off-by: John Lybeck <john.lybeck@amd.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* chore: bump golang.org/x/net to v0.60.0 (#10254)

Fixes CVE-2026-97032, CVE-2026-78659, CVE-2026-78660, CVE-2026-78663 and
CVE-2026-78669.

Signed-off-by: Hariharan Subramanian <hsubramanian@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c55c776d-397b-4a82-a279-d91e0e21e10d
Signed-off-by: zirain <zirain2009@gmail.com>

* fix: route status condition order (#10183)

* fix(status): report route status conditions in a deterministic order

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* add release note

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

---------

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix(provider): index HTTPRouteFilters referenced only from backendRef filters (#10246)

* fix(provider): index HTTPRouteFilters referenced only from backendRef filters

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* renumber release note

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

---------

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix: record a BackendTrafficPolicy on a TCP or UDP route once (#10289)

A policy with mergeType is applied once per listener of each parentRef,
and a parentRef with a sectionName can name a listener another parentRef
already covers. The feature fields are only set when nil, but the policy
metadata was appended on every pass, so a TCP, TLS or UDP route attached
to the same Gateway twice carried the policy twice. The append now skips
a policy the route already records.

Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix(status): match route parent status by parentRef and controllerName (#10327)

* fix(status): match route parent status by parentRef and controllerName

mergeRouteParentStatus matched old and new RouteParentStatus entries by
parentRef only. When another controller had written its own entry for
the same parentRef, that entry was replaced by our status, so the route
ended up with two entries of ours. The other controller then re-added
its entry, and every following merge added one more duplicate until
status.parents reached its maxItems of 32 and all further status writes
to the route were rejected.

Match entries by parentRef and controllerName, and append each new
entry only once so existing duplicates are collapsed on the next update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Freem <freemanovec@protonmail.com>

* Add release note for route parent status fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Freem <freemanovec@protonmail.com>

---------

Signed-off-by: Freem <freemanovec@protonmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix: make namespace watch cache ByObject entries deterministic (#10302)

* fix: make namespace watch cache ByObject entries deterministic

ByObject is keyed by object pointer, so the WatchesNamespaces() block added
a second entry for types already registered (Secret, ConfigMap, Service,
EndpointSlice, ServiceAccount, Deployment) and the cache kept one at random.
Replace the existing entry for the type instead, and grant EndpointSlice
read in the controller namespace for Gateway Namespace Mode with watch
namespaces.

Fixes #10271

Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com>

* test: regenerate helm golden for gateway-namespace-config-watch

Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com>

---------

Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix(helm): grant controller namespace Secret/EndpointSlice read with watch.namespaces (#10377)

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix lint

Signed-off-by: zirain <zirain2009@gmail.com>

* fix gen

Signed-off-by: zirain <zirain2009@gmail.com>

* fix: deterministic parentRef order (#10393)

Signed-off-by: zirain <zirain2009@gmail.com>

---------

Signed-off-by: Clement Phu <clement.phu@hotmail.fr>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: Cooper Gamble <cooper@openai.com>
Signed-off-by: stillya <st.ilya.101@gmail.com>
Signed-off-by: Seiji Chew <seiji@exa.ai>
Signed-off-by: John Lybeck <john.lybeck@amd.com>
Signed-off-by: Hariharan Subramanian <hsubramanian@microsoft.com>
Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io>
Signed-off-by: Freem <freemanovec@protonmail.com>
Signed-off-by: Manish Tiwari <69393822+manish-9245@users.noreply.github.com>
Co-authored-by: Clement Phu <34369901+cleman95@users.noreply.github.com>
Co-authored-by: cooper-oai <cooper@openai.com>
Co-authored-by: Starchenko Ilya <st.ilya.101@gmail.com>
Co-authored-by: Seiji Chew <67301797+schew2381@users.noreply.github.com>
Co-authored-by: Seiji Chew <seiji@exa.ai>
Co-authored-by: Lybeck <john.lybeck@amd.com>
Co-authored-by: Hariharan Subramanian <105889062+hsubramanianaks@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Kota Kimura <86363983+kkk777-7@users.noreply.github.com>
Co-authored-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
Co-authored-by: Freem <freemanovec@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Manish <69393822+manish-9245@users.noreply.github.com>
Copilot-Session: c55c776d-397b-4a82-a279-d91e0e21e10d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants