fix(wolf-rbac): scope identity headers to route configuration - #13905
Open
shreemaan-abhishek wants to merge 5 commits into
Open
fix(wolf-rbac): scope identity headers to route configuration#13905shreemaan-abhishek wants to merge 5 commits into
shreemaan-abhishek wants to merge 5 commits into
Conversation
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.
Description
Wolf identity headers are part of the upstream contract of a Route or Service. Keeping
header_prefixsolely at Consumer scope makes that contract vary by Consumer and requires authentication orchestration to know about unrelated Consumer configurations.This change makes the Route or Service configuration authoritative when
header_prefixis explicitly configured:multi-authinvokes an optional preparation hook for configured authenticators before evaluation.header_prefix, the default namespace remainsX-, while the matched Consumer prefix remains available as a compatibility fallback.Regression coverage includes both
multi-authorderings, default and custom Route prefixes, successful Wolf authentication, Route precedence over Consumer configuration, and the Consumer compatibility fallback.The documentation now recommends configuring
header_prefixon the Route or Service that owns the upstream identity-header contract.Behavior change
An explicitly configured Route or Service
header_prefixnow takes precedence over a Consumer-level value. Consumer-level prefixes remain supported when the Route omits the field.Which issue(s) this PR fixes:
N/A
Checklist
header_prefix