How to connect to Kafka over TLS to a vanilla (Strimzi) Kafka cluster #1260
-
Hi I'm trying to set up Kafbat with TLS configuration. I run an internal Kafka cluster using Strimzi, and am trying to use the Helm Chart to set up kafbat. When running over a plain listener, everything works well, and I have managed to get scram-sha-512 working over a plain connection. However, when I try to connect over TLS, then this fails. My idea would be to run TLS connections with TLS authentication, but failing that TLS connection with scram-sha-512 over TLS would be fine also. The error I'm currently getting is
Kafbat is given the following chart:
On start-up, I get the following details output before the cert-path error, which seem to show that some of the configuration above is not being picked up? e.g. the truststore type for example?
Any hints as to where I'm going wrong? I checked open_ssl s_client against my kafka, and it does seem like kafka-mycluster-kafka-bootstrap is listed, amongst others such as kafka-mycluster-kafka-bootstrap.kafka.svc, etc. For mutual TLS, i would also appreciate a hint also - is it just setting the kafka.clusters.properties.keystore values in the same way? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
yamlApplicationConfig:
kafka:
clusters:
- name: mycluster
bootstrapServers: kafka-mycluster-kafka-bootstrap:9093
ssl:
truststoreLocation: "/etc/kafka/ca/ca.p12"
truststorePassword: "${SECRET_TRUSTSTORE_PASSWORD}"
verifySsl: false
properties:
security.protocol: SSL
ssl.keystore.location: "/etc/kafka/user/user.p12"
ssl.keystore.password: "${SECRET_TRUSTSTORE_PASSWORD}" also you need take another CA from another strimzi-secret |
Beta Was this translation helpful? Give feedback.
-
Hi Thanks for the prompt answer - i now still get the same issue, despite passing the user's p12 cert in the key store. The config i tried:
The error i still get
Here is the output from kafbat
depth=1 O=io.strimzi, CN=cluster-ca v0
|
Beta Was this translation helpful? Give feedback.
-
Hi Thanks for that - I actually thought of that too just as i posted and that worked - thanks for the hint. For posterity and for others, here is the final configuration I settled on:
Thanks again for the help. |
Beta Was this translation helpful? Give feedback.
Hi
Thanks for that - I actually thought of that too just as i posted and that worked - thanks for the hint. For posterity and for others, here is the final configuration I settled on: