Raghu Baddam created KAFKA-15452: ------------------------------------ Summary: Custom Principal Builders Can't Access SslPrincipalMapper Key: KAFKA-15452 URL: https://issues.apache.org/jira/browse/KAFKA-15452 Project: Kafka Issue Type: Bug Affects Versions: 2.8.1 Reporter: Raghu Baddam
When We are Implementing a Custom KafkaPrincipalBuilder, we don't have access to SslPrincipalMapper and also kerberosShortNamer. Without SslPrincipalMapper, the Custom KafkaPrincipalBuilder can't parse the Regex Rules from the BrokerSecurityConfigs.SSL_PRINCIPAL_MAPPING_RULES_CONFIG that results in not supporting Mapping Rules because SslPrincipalMapper will be null. In our case I have found a workarounds to read config and build my another SslPrincipalMapper but I think It should be handled at the ChannelBuilders or SslChannelBuilder itself. Git Reference: [https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/network/ChannelBuilders.java#L223-L242] If Community believe that it is a bug then I am happy to come up with a fix. -- This message was sent by Atlassian Jira (v8.20.10#820010)