You want to connect with username and password to a secured Kafka cluster that has SSL encryption.
Which properties must your client include?
security.protocol=SASL_SSL
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username='myUser' password='myPassword';
security.protocol=SSL
security.protocol=SASL_PLAINTEXT
security.protocol=PLAINTEXT
sasl.jaas.config=org.apache.kafka.common.security.ssl.TlsLoginModule required username='myUser' password='myPassword';
ForSASL/PLAIN authentication over SSL, the correct combination is:
sasl.jaas.config=...PlainLoginModule required username=... password=...
FromKafka Security Documentation:
“For SASL/PLAIN over SSL, configure security.protocol=SASL_SSL and provide login module configuration using sasl.jaas.config.”
Options B and D are incorrect because they do not pair the correct protocol with the authentication method.
Submit