Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Current state: Under Discussion

Discussion thread: https://lists.apache.org/thread/somdgdoz1o3z5rwqozsty97fdo2bgkqkhere [Change the link from the KIP proposal email archive to your own email thread]

JIRA:

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyKAFKA-18926

...

Before KRaft, custom KafkaPrincipalBuilder implementations only needed to build principals. However, KRaft requires brokers to forward requests involving these principals to controllers. Without corresponding KafkaPrincipalSerde implementations, brokers cannot serialize/deserialize them, causing failures. Currently, the API doesn't enforce the implementation of KafkaPrincipalSerde alongside KafkaPrincipalBuilder. This KIP aims to rectify this by making it a compile-time requirement.

Public Interfaces

org.apache.kafka.common.security.auth.KafkaPrincipalBuilder

Code Block
languagejava
public interface KafkaPrincipalBuilder {
    KafkaPrincipal build(AuthenticationContext context);
}

...