Skip to content

KAFKA-18926 KafkaPrincipalBuilder should extend KafkaPrincipalSerde #19987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

johnny94
Copy link
Contributor

@johnny94 johnny94 commented Jun 18, 2025

In KRaft, custom KafkaPrincipalBuilder instances must implement
KafkaPrincipalSerde to support the forward mechanism. Currently, this
requirement is not enforced and relies on the developer's attention.

With this patch, we can prevent incorrect implementations at compile
time.

@github-actions github-actions bot added triage PRs from the community core Kafka Broker clients small Small PRs labels Jun 18, 2025
@johnny94 johnny94 marked this pull request as ready for review June 19, 2025 03:07
Copy link
Collaborator

@m1a2st m1a2st left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks to @johnny94 for this patch. Could you add this change to the Upgrading to 4.2.0 section in upgrade.html?

@github-actions github-actions bot removed the triage PRs from the community label Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants