Hi Kafka Dev Community, Hope you are doing well. I wanted to bring your attention to the following pull request KAFKA-15452: Access SslPrincipalMapper and kerberosShortNamer in Custom KafkaPrincipalBuilder(KIP-982) #14491 <https://github.com/apache/kafka/pull/14491>.
The changes made will allow custom KafkaPrincipalBuilder implementations to access SslPrincipalMapper and kerberosShortNamer, which will enable them to parse Regex Rules from BrokerSecurityConfigs SSL_PRINCIPAL_MAPPING_RULES_CONFIG. Please take a look at it and let me know if it's possible to merge it. KIP-982 <https://cwiki.apache.org/confluence/display/KAFKA/KIP-982%3A+Access+SslPrincipalMapper+and+kerberosShortNamer+in+Custom+KafkaPrincipalBuilder> has complete details about the change. Thank you for your time and consideration. Best regards, Raghu Baddam