Reputation: 29477
I have created a 3-node ZK ensemble to use as a consensus cluster for Kafka and (potentially) other services as well.
I have also created a separate 2-node Kafka broker cluster that uses those 3 ZKs for leader election, etc. I have tested this configuration with remote producers & consumers and it seems to be working quite nicely.
I now want to have my Kafka brokers require TLS/SSL, so that Kafka clients have to communicate via SSL certs. But I don't want to configure my 3 ZK nodes to require TLS.
Can I have the following setup (?) :
Kafka Clients <---TLS---> Kafkas <---TCP---> ZK
Or do I need TLS all the way through to the ZK backend?
Upvotes: 0
Views: 922
Reputation: 637
This task can still be achieved by a simple workaround mentioned in the steps below;
/zookeeper-3.5.1-alpha/zookeeper-3.5.1-alpha.jar
in <kafka-installation-folder>\libs
/zookeeper-3.5.1-alpha/lib/netty-3.7.0.Final.jar
into <kafka-installation-folder>\libs
Upvotes: 0
Reputation: 4253
Yes, you can. When you configure SSL in Kafka that is only for Kafka clients to Kafka servers and optionally between Kafka servers. Indeed, Zookeeper 3.4 does not support TLS communication between clients and servers yet. Thay feature is coming in Zookeeper 3.5.
Upvotes: 2