conduktor.io ↗

KIP-1157 — Enforce KafkaPrincipalSerde Implementation for KafkaPrincipalBuilder

Accepted Kafka 4.2 Security

Makes KafkaPrincipalBuilder extend KafkaPrincipalSerde, converting the need for custom principals to implement serialization into a compile-time requirement rather than a runtime failure. KRaft requires brokers to forward requests to controllers with serialized principal objects; without KafkaPrincipalSerde, custom KafkaPrincipalBuilder implementations silently failed at runtime during request forwarding.

Details

AuthorSzu-Yung Wang
StatusAccepted
Kafka Version4.2
JIRAKAFKA-18926
WikiView on Apache Wiki
Created2025-04-08
Last Modified2025-06-13
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.