spring-projects / spring-projects/spring-security
Provide Micrometer Context Propagation for SecurityContext
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
Add context propagation support via Micrometer Context Propagation for the SecurityContext, between SecurityContextHolder and ReactiveSecurityContextHolder.
This would allow applications to easily cross between the reactive <-> imperative border in either direction, and have the SecurityContext available on both sides.
Examples:
- a WebFlux application could use the
handleortapoperators (which propagate from Context to ThreadLocals) to call into imperative code that expects theSecurityContextto be accessible fromSecurityContextHolder. - a Spring WebMVC application could use the
captureContextoperator (which propagates ThreadLocals to Context) to call into reactive code that expects theSecurityContextto be accessible fromReactiveSecurityContextHolder.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Micrometer Context Propagation documentation and the SecurityContextHolder and ReactiveSecurityContextHolder entry points. Use the described handle, tap, and captureContext examples to assess propagation in both directions; done means SecurityContext is available across the reactive-to-imperative and imperative-to-reactive boundaries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100