KAFKA-18744: reuse LoginCallbackHandler on Kerberos re-login - #23281
Open
MdTanwer wants to merge 1 commit into
Open
KAFKA-18744: reuse LoginCallbackHandler on Kerberos re-login#23281MdTanwer wants to merge 1 commit into
MdTanwer wants to merge 1 commit into
Conversation
MdTanwer
marked this pull request as draft
August 26, 2026 12:56
MdTanwer
force-pushed
the
KAFKA-18744-kerberos-relogin-callback
branch
from
August 26, 2026 13:01
7da8c68 to
8b804a5
Compare
Initial login honored sasl.login.callback.handler.class, but ticket refresh built LoginContext with a null callback, so password-based Kerberos re-login failed when the TGT expired.
MdTanwer
force-pushed
the
KAFKA-18744-kerberos-relogin-callback
branch
from
August 26, 2026 13:02
8b804a5 to
e1602de
Compare
MdTanwer
marked this pull request as ready for review
August 26, 2026 13:04
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.
Summary
sasl.login.callback.handler.classwas used for the initial Kerberos login but ignored when the TGT was refreshed.KerberosLogin.reLogin()constructed a newLoginContextwith a null callback, so password-based Kerberos clients failed after ticket expiry (LoginException: No CallbackHandler available to garner authentication information from the user).AuthenticateCallbackHandler, matching the initial login path.PasswordCallback, asserting the handler is invoked again on re-login.Fixes KAFKA-18744. Also covers KAFKA-14681 / #13081 (same
reLogin()null-callback bug when the TGT is refreshed without a keytab).