Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
10-03-2019
12:51 AM
- last edited on
10-03-2019
03:32 AM
by
VidyaSargur
Hello Friends
You could help me to secure my Kafka servers for both Broker and client. As additional data I am using a KDC. As I see I currently have the security.inter.broker.protocol SASL_PLAINTEXT I don't know if it is correct or how I should secure this service.
Thank you
Created 10-03-2019 12:24 PM
Hi @Peruvian81
Kafka has multiple ways to be secured:
SSL Kerberos
| PLAINTEXT | No | No |
| SSL | Yes | No |
| SASL_PLAINTEXT | No | Yes |
| SASL_SSL | Yes | Yes |
If you already are using Kerberos, you can check the document below:
For your clients, you can use below command line depending of the Kafka version:
consumer example:
bin/kafka-console-consumer.sh --bootstrap-server <kafkaHost>:<kafkaPort> --topic <topicName> --security-protocol SASL_PLAINTEXT
For newer versions, consumer example:
bin/kafka-console-consumer.sh --topic <topicName> --bootstrap-server <brokerHost>:<brokerPort> --consumer-property security.protocol=SASL_PLAINTEXT
* Make sure to get a valid Kerberos ticket before running these commands (kinit -kt keytab principal)
** Ensure the Kerberos principal has permissions to publish/consume data from/to the selected topic
Created 10-03-2019 12:24 PM
Hi @Peruvian81
Kafka has multiple ways to be secured:
SSL Kerberos
| PLAINTEXT | No | No |
| SSL | Yes | No |
| SASL_PLAINTEXT | No | Yes |
| SASL_SSL | Yes | Yes |
If you already are using Kerberos, you can check the document below:
For your clients, you can use below command line depending of the Kafka version:
consumer example:
bin/kafka-console-consumer.sh --bootstrap-server <kafkaHost>:<kafkaPort> --topic <topicName> --security-protocol SASL_PLAINTEXT
For newer versions, consumer example:
bin/kafka-console-consumer.sh --topic <topicName> --bootstrap-server <brokerHost>:<brokerPort> --consumer-property security.protocol=SASL_PLAINTEXT
* Make sure to get a valid Kerberos ticket before running these commands (kinit -kt keytab principal)
** Ensure the Kerberos principal has permissions to publish/consume data from/to the selected topic