Repository navigation
feat(gamma): resolve ExtensionRef → HTTPFilter, wire HCM union (025 M1) - #446
Merged
Merged
Conversation
Completes M1: the escape hatch now works end-to-end on the route-scope path,
proven by the offline envoy-validate gate (real Envoy accepts it).
- GAMMA reconciler: lists/watches HTTPFilter (config.aether.io); resolves each
HTTPRoute/GRPCRoute ExtensionRef (same-namespace LocalObjectReference) to an
allow-listed, ROUTE-scope HTTPFilter and attaches ExtensionFilter{name, typedConfig}
to the GammaRoute. Dangling / non-allow-listed / wrong-group / CHAIN-scope refs are
skipped (M2 webhook makes them a clean ResolvedRefs=False reject).
- Cache: per-pod capture listener HCM now carries CollectExtensionFilters(union of
in-scope GammaRoutes) default-disabled (threaded through GenerateCaptureListener →
buildCaptureHTTPFilterChain). typed_per_filter_config (per-route, #444) only
overrides a chain filter, so the disabled entry must be present.
- header_mutation added to the allow-list (compiled into the proxy build per
extensions_build_config.bzl).
- envoy-validate: the route-target bootstrap now exercises a header_mutation
ExtensionFilter — default-disabled HCM entry + per-route HeaderMutationPerRoute —
and stock Envoy accepts it (the real-Envoy proof; M2 approximates it in-process).
- agent RBAC: get/list/watch httpfilters.config.aether.io. aether chart 0.58.0.
- Tests: reconciler ExtensionRef resolution matrix (allow-list/scope/dangling).
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
bpalermo
added a commit
that referenced
this pull request
Jul 2, 2026
…ashloop) (#461) The gamma reconciler watches HTTPFilter since #446, but the agent's runtime scheme never registered the config.aether.io group — so with --gamma every agent start fails the HTTPFilter cache sync with "no kind is registered for the type v1.HTTPFilter", the manager crash-loops, and the CNI socket dies with it (new managed pods can't sandbox). Observed on talos-main: all 5 agents crashlooping since the 0.60.0 deploy (496 restarts / 2d15h). Unit tests missed it because the test scheme registered the type; the RESTMapper gate (#453) doesn't cover it — it checks the CRD on the API server, not the client scheme. Fix: configapisv1.AddToScheme in the --gamma block, beside the gateway-api installs. Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S Co-authored-by: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes M1 — the escape hatch works end-to-end on the route-scope path, proven by the offline envoy-validate gate (real Envoy accepts it).
HTTPFilter; resolves each HTTPRoute/GRPCRouteExtensionRef(same-namespace) to an allow-listed, ROUTE-scope HTTPFilter and attachesExtensionFilter{name, typedConfig}to theGammaRoute. Dangling / non-allow-listed / wrong-group / CHAIN-scope refs are skipped (M2 webhook turns these into a cleanResolvedRefs=False).CollectExtensionFilters(union of in-scope rules)(default-disabled) into the per-pod capture HCM (GenerateCaptureListener→buildCaptureHTTPFilterChain). The disabled entry must exist fortyped_per_filter_config(feat(xds): escape-hatch extension filters — proxy data-plane core (025 M1) #444) to override.header_mutationadded to the allow-list (compiled into the proxy perextensions_build_config.bzl).header_mutationExtensionFilter — default-disabled HCM entry + per-routeHeaderMutationPerRoute— and stock Envoy accepts it (the real-Envoy proof).get/list/watch httpfilters.config.aether.io. aether chart0.57.0 → 0.58.0.bazel build //...+ agent/apis/charts/envoy_validate tests + format-check all green.After this, M1 is functionally complete (route ExtensionRef end-to-end). Next: M2 (in-process proto-validate webhook).
🤖 Generated with Claude Code