[security] Make SASL mechanisms extensible - #3865
Open
litiliu wants to merge 2 commits into
Open
Conversation
4 tasks
litiliu
force-pushed
the
codex/fluss-3495-sasl-pr1
branch
from
August 5, 2026 09:00
ac3ab77 to
554af89
Compare
Add a stateless factory that creates one complete authenticator per connection while preserving the existing global SASL mechanism configuration and PLAIN/JAAS behavior. Shared mechanism/session lifecycle is deferred.
litiliu
force-pushed
the
codex/fluss-3495-sasl-pr1
branch
from
August 5, 2026 09:05
554af89 to
4197332
Compare
litiliu
marked this pull request as ready for review
August 5, 2026 10:03
Contributor
Author
|
@loserwang1024 hongshun, PTAL |
2 tasks
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.
Purpose
Related issue: #3495
This PR prepares the Fluss RPC SASL authentication layer for adding built-in mechanisms such as OAUTHBEARER. The existing implementation constructs PLAIN authenticators directly, which makes adding another mechanism require changing the PLAIN implementation path.
This is intentionally a foundation-only change. It does not add OAuth token acquisition, JWT validation, JWKS handling, group principals, or ACL changes.
Brief change log
SaslAuthenticatorFactorythat selects a built-in SASL mechanism and creates one connection-local authenticator.PlainSaslServerAuthenticator.SaslServerAuthenticatoras the connection-local dispatcher that validates the requested server mechanism and delegates authentication.Tests
./mvnw -pl fluss-common -DskipITs -Dtest=SaslAuthenticatorFactoryTest,PlainSaslServerTest clean testgit diff --checkAPI and Format
No public API, RPC wire format, or storage format changes.
The new factory is internal. No new configuration options are introduced.
Documentation
No documentation changes are required because this PR does not expose a new authentication mechanism or configuration.