Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-15452

Custom KafkaPrincipalBuilder Cannot Access SslPrincipalMapper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.8.1
    • None
    • clients, security

    Description

      When implementing a custom KafkaPrincipalBuilder, it is not possible to access SslPrincipalMapper and kerberosShortNamer. This limits the ability to parse Regex Rules from BrokerSecurityConfigs.SSL_PRINCIPAL_MAPPING_RULES_CONFIG, resulting in lack of support for Mapping Rules as SslPrincipalMapper is null.

      A possible workaround is to read the configuration and build another SslPrincipalMapper. However, it would be beneficial if this issue could be addressed at the ChannelBuilders or SslChannelBuilder level.

      Git Reference: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/network/ChannelBuilders.java#L223-L242

      If the community deems this to be a bug, I am willing to provide a fix.

      Attachments

        Activity

          People

            raghu98499@gmail.com Raghu Baddam
            raghu98499@gmail.com Raghu Baddam
            Mickael Maison Mickael Maison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: