Adding JWT auth capability for s2s replication#10165
Draft
stuart-wells wants to merge 7 commits intomainfrom
Draft
Adding JWT auth capability for s2s replication#10165stuart-wells wants to merge 7 commits intomainfrom
stuart-wells wants to merge 7 commits intomainfrom
Conversation
added 6 commits
April 22, 2026 14:17
Contributor
|
I haven't looked in detail at this code yet, but one feature that's been requested a lot is to be able to authenticate internode connections (within one cluster) with tokens instead of mTLS. Would it be easy to cover that use case in this PR as well? |
Contributor
|
Also, for frontend auth, we have this pluggable ClaimMapper interface that defines how tokens/TLS info is handled, and then a JWT-based implementation. Can we set up something similar (or reuse ClaimMapper) so that s2s (and internode) token-based auth isn't tied to JWT either? |
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.
What changed?
Adds JWT to server-to-server connections. Frontend already had support for reading auth so this focuses on getting a token and injecting it.
Why?
s2s is currently a gap in the auth abilities. This provides more flexibility for users based on their auth requirements.
How did you test it?
Potential risks
Need to get auth right. Main risk is a user believing they are secure when they are not.