Skip to content

feat(gamma): resolve ExtensionRef → HTTPFilter, wire HCM union (025 M1) - #446

Merged
bpalermo merged 1 commit into
mainfrom
feat/025-m1-reconciler-wiring
Jun 29, 2026
Merged

bpalermo merged 1 commit into
mainfrom
feat/025-m1-reconciler-wiring

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

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).

  • GAMMA reconciler lists/watches HTTPFilter; resolves each HTTPRoute/GRPCRoute ExtensionRef (same-namespace) 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 turns these into a clean ResolvedRefs=False).
  • Cache threads CollectExtensionFilters(union of in-scope rules) (default-disabled) into the per-pod capture HCM (GenerateCaptureListener → buildCaptureHTTPFilterChain). The disabled entry must exist for typed_per_filter_config (feat(xds): escape-hatch extension filters — proxy data-plane core (025 M1) #444) to override.
  • header_mutation added to the allow-list (compiled into the proxy 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).
  • agent RBAC: get/list/watch httpfilters.config.aether.io. aether chart 0.57.0 → 0.58.0.
  • Reconciler ExtensionRef resolution-matrix test; 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

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
bpalermo merged commit a919545 into main Jun 29, 2026
5 checks passed
@bpalermo
bpalermo deleted the feat/025-m1-reconciler-wiring branch June 29, 2026 17:17
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]>
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.

1 participant