Skip to content

feat(xds): escape-hatch extension filters — proxy data-plane core (025 M1) - #444

Merged
bpalermo merged 1 commit into
mainfrom
feat/025-m1-extension-filter-core
Jun 29, 2026
Merged

bpalermo merged 1 commit into
mainfrom
feat/025-m1-extension-filter-core

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

First slice of proposal 025 M1 — the proxy-package primitives for the escape hatch, inert until the GAMMA reconciler wires GammaRoute.ExtensionFilters (next slice).

  • GammaRoute.ExtensionFilters + ExtensionFilter{Name, Config *anypb.Any}.
  • allowedExtensionFilters allow-list (filters the proxy build compiles in — header_to_metadata is in, subset routing uses it) + ExtensionFilterAllowed.
  • extensionHTTPFilter: default-disabled HCM entry (typed_per_filter_config can only override a filter already in the chain, never add one — so it must be present; the route re-enables+configures it).
  • collectExtensionFilters: deduped, allow-list-filtered HCM union for a listener's rules.
  • extensionPerFilterConfig + BuildOutboundServiceVirtualHost emits each route's typed_per_filter_config.
  • Unit tests for all of the above; bazel build //... + proxy tests + format-check green.

🤖 Generated with Claude Code

…5 M1)

First slice of proposal 025 M1: the proxy-package primitives for the
proxy-extension escape hatch, inert until the GAMMA reconciler wires
GammaRoute.ExtensionFilters (next slice).

- GammaRoute.ExtensionFilters + ExtensionFilter{Name, Config *anypb.Any}.
- allowedExtensionFilters allow-list (filters the proxy build compiles in;
  header_to_metadata is in — subset routing already uses it) + ExtensionFilterAllowed.
- extensionHTTPFilter: a default-DISABLED HCM entry (typed_per_filter_config can
  only override a filter already in the chain, never add one, so the filter must be
  present; the route re-enables+configures it).
- collectExtensionFilters: deduped, allow-list-filtered union of HCM entries for a
  listener's rules (nil when none).
- extensionPerFilterConfig + BuildOutboundServiceVirtualHost now emits each route's
  typed_per_filter_config from its ExtensionFilters.
- Unit tests: allow-list, default-disabled shape, union dedup, per-route emission,
  vhost emission.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
@bpalermo
bpalermo merged commit d6a48d2 into main Jun 29, 2026
5 checks passed
@bpalermo
bpalermo deleted the feat/025-m1-extension-filter-core branch June 29, 2026 16:35
bpalermo added a commit that referenced this pull request Jun 29, 2026
…1) (#446)

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


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