-
Hey, Following my question the other day, I've now setup scram-sha-512 authentication on the kafka cluster external listeners:
Then I created an user with same auth type:
And I am using it to connect from a python consumer:
Kafka gives me an error on the handshake:
I am trying to understand few things here to properly configure it:
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you set You do not need to use TLS encryption with SASL - SASL works fine without it and SCRAM-SHA-512 does not send raw passwords over the network. But obviously the messages you are sending will not be encrypted. So normally, encryption will be recommended ... but it is up to you to decide. You just need to configure the client accordingly. If you enable the TLS, with the configuration you have for the listener, you should get the Cluster CA public key from the secret named |
Beta Was this translation helpful? Give feedback.
If you set
tls: false
on the listener, you are not using encryption. In that case, yoursecurity.protocol
in the client has to beSASL_PLAINTEXT
and notSASL_SSL
. That is likely causing the issue you see.You do not need to use TLS encryption with SASL - SASL works fine without it and SCRAM-SHA-512 does not send raw passwords over the network. But obviously the messages you are sending will not be encrypted. So normally, encryption will be recommended ... but it is up to you to decide. You just need to configure the client accordingly.
If you enable the TLS, with the configuration you have for the listener, you should get the Cluster CA public key from the secret named
<cluster-name>-clus…