Repository navigation
feat(xds): escape-hatch extension filters — proxy data-plane core (025 M1) - #444
Merged
Merged
Conversation
…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
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]>
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.
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}.allowedExtensionFiltersallow-list (filters the proxy build compiles in —header_to_metadatais in, subset routing uses it) +ExtensionFilterAllowed.extensionHTTPFilter: default-disabled HCM entry (typed_per_filter_configcan 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+BuildOutboundServiceVirtualHostemits each route'styped_per_filter_config.bazel build //...+ proxy tests + format-check green.🤖 Generated with Claude Code