feat(security-webflux): opt-in principal->header bridge#1
Merged
Conversation
PrincipalHeaderBridgeWebFilter derives trusted X-Tenant-Id/X-User-Id/X-User-Roles from the validated token (never the client), overwriting any inbound value and failing closed (403) on an unresolved required tenant. Wired by an opt-in WebFluxBridgeAutoConfiguration (firefly.security.webflux.header-bridge.enabled, off by default) that also contributes the default TenantResolverPort. Both beans ConditionalOnMissingBean. spring-boot-autoconfigure compile-scope to match the other security autoconfig modules. Dev version 26.06.03-SNAPSHOT; core tracked at the dev version, api/spi pinned to 26.06.02.
…03 framework release Drop the hand-rolled pre-release SNAPSHOT version pin and the dependencyManagement neutralization; keep the spring-boot-autoconfigure dependency the header-bridge auto-configuration needs. flywork fwversion bump takes the framework to 26.06.03.
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.
Adds PrincipalHeaderBridgeWebFilter + opt-in WebFluxBridgeAutoConfiguration (firefly.security.webflux.header-bridge.enabled, default false) and a default TenantResolverPort, both @ConditionalOnMissingBean. Additive/opt-in. Part of the token-handler BFF security extraction landing in 26.06.03.