You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by habdank <ha...@gmail.com> on 2016/07/29 11:16:14 UTC

Camel Kafka SASL PLAIN

Dears,

Is the Client part of the Camel Kafka plugin already in use with SASL PLAIN
protocol?
Has anyone this feature end to end tested?
Is there any how to for that kind of scenario for Camel-Kafka?

I see that zookeeper has problems with SSL.
And What I see in the:

   
camel/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java

There is no way to set SSL/SASL and then user name and password, what is
expected by the Kafka  Kafka Documentation
<http://kafka.apache.org/documentation.html>   :


To configure SASL authentication on the clients:

    The KafkaClient section describes how the clients like producer and
consumer can connect to the Kafka Broker. The following is an example
configuration for a client for the PLAIN mechanism:

        KafkaClient {
            org.apache.kafka.common.security.plain.PlainLoginModule required
            username="alice"
            password="alice-secret";
        };

    The properties username and password in the KafkaClient section are used
by clients to configure the user for client connections. In this example,
clients connect to the broker as user alice.
    Pass the JAAS config file location as JVM parameter to each client JVM:

        -Djava.security.auth.login.config=/etc/kafka/kafka_client_jaas.conf

    Configure the following properties in producer.properties or
consumer.properties:

        security.protocol=SASL_SSL
        sasl.mechanism=PLAIN


Best regards,
Seweryn.



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Kafka-SASL-PLAIN-tp5785622.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Kafka SASL PLAIN

Posted by Andrea Cosentino <an...@yahoo.com.INVALID>.
What version of Camel do you refer to?


--
Andrea Cosentino 
----------------------------------
Apache Camel PMC Member
Apache Karaf Committer
Apache Servicemix Committer
Email: ancosen1985@yahoo.com
Twitter: @oscerd2
Github: oscerd



On Friday, July 29, 2016 1:17 PM, habdank <ha...@gmail.com> wrote:



Dears,

Is the Client part of the Camel Kafka plugin already in use with SASL PLAIN
protocol?
Has anyone this feature end to end tested?
Is there any how to for that kind of scenario for Camel-Kafka?

I see that zookeeper has problems with SSL.
And What I see in the:

  
camel/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java

There is no way to set SSL/SASL and then user name and password, what is
expected by the Kafka  Kafka Documentation
<http://kafka.apache.org/documentation.html>   :


To configure SASL authentication on the clients:

    The KafkaClient section describes how the clients like producer and
consumer can connect to the Kafka Broker. The following is an example
configuration for a client for the PLAIN mechanism:

        KafkaClient {
            org.apache.kafka.common.security.plain.PlainLoginModule required
            username="alice"
            password="alice-secret";
        };

    The properties username and password in the KafkaClient section are used
by clients to configure the user for client connections. In this example,
clients connect to the broker as user alice.
    Pass the JAAS config file location as JVM parameter to each client JVM:

        -Djava.security.auth.login.config=/etc/kafka/kafka_client_jaas.conf

    Configure the following properties in producer.properties or
consumer.properties:

        security.protocol=SASL_SSL
        sasl.mechanism=PLAIN


Best regards,
Seweryn.



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Kafka-SASL-PLAIN-tp5785622.html
Sent from the Camel - Users mailing list archive at Nabble.com.