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
| Author | Szu-Yung Wang |
| Status | Accepted |
| Kafka Version | 4.2 |
| JIRA | KAFKA-18926 |
| Wiki | View on Apache Wiki |
| Created | 2025-04-08 |
| Last Modified | 2025-06-13 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.