Repository navigation
fix(authz): INBOUND filters bring their own chain entry into the union - #477
Merged
Merged
Conversation
…nsion union The RBAC M2 talos e2e caught it live: an INBOUND rbac ENFORCE silently never took effect (rogue stayed 200). The inbound route vhost carried the RBACPerRoute TPFC, but the inbound HCM chain had NO rbac entry — serviceInboundFilters was never part of the extension union, and rbac (unlike ext_authz) brings no system entry. A TPFC referencing an absent chain filter rejects the listener; the old listener kept serving. ext_authz INBOUND masked the gap because the authz-sidecar entry is added unconditionally. Fix: extensionHTTPFilters unions serviceInboundFilters (their default-disabled entries) alongside route + chain filters. Regression test asserts the httpFilters array carries the entry (the previous heuristic was fooled by the TPFC key appearing per chain) — verified failing pre-fix, passing post-fix. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
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.
Caught live by the RBAC M2 e2e: INBOUND rbac ENFORCE silently inert — the inbound vhost carried the TPFC but the chain had no rbac entry (
serviceInboundFiltersnever joined the union; rbac has no system entry unlike ext_authz's sidecar entry). TPFC→absent-filter rejects the listener; old config kept serving. Fix: the union includes INBOUND filters' default-disabled entries. Regression test verified failing pre-fix.