Gabor Somogyi created KAFKA-8234:
------------------------------------

             Summary: Multi-module support for JAAS config property
                 Key: KAFKA-8234
                 URL: https://issues.apache.org/jira/browse/KAFKA-8234
             Project: Kafka
          Issue Type: Improvement
            Reporter: Gabor Somogyi


I've tried to add multi-modules to JAAS config property but its not supported 
at the moment:
{code:java}
Exception in thread "main" org.apache.kafka.common.KafkaException: Failed 
create new KafkaAdminClient
        at 
org.apache.kafka.clients.admin.KafkaAdminClient.createInternal(KafkaAdminClient.java:370)
        at 
org.apache.kafka.clients.admin.AdminClient.create(AdminClient.java:52)
        at 
com.kafka.delegationtoken.consumer.SecureKafkaConsumer$.main(SecureKafkaConsumer.scala:96)
        at 
com.kafka.delegationtoken.consumer.SecureKafkaConsumer.main(SecureKafkaConsumer.scala)
Caused by: java.lang.IllegalArgumentException: JAAS config property contains 2 
login modules, should be 1 module
        at 
org.apache.kafka.common.security.JaasContext.load(JaasContext.java:95)
        at 
org.apache.kafka.common.security.JaasContext.loadClientContext(JaasContext.java:84)
        at 
org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:119)
        at 
org.apache.kafka.common.network.ChannelBuilders.clientChannelBuilder(ChannelBuilders.java:65)
        at 
org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:88)
        at 
org.apache.kafka.clients.admin.KafkaAdminClient.createInternal(KafkaAdminClient.java:346)
        ... 3 more
{code}
I wanted to implement a fallback scenario with sufficient LoginModule flag but 
the missing multi-module support makes in impossible.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to