shayhatsor / zookeeper

Apache ZooKeeper .NET async Client
https://nuget.org/packages/ZooKeeperNetEx/
Apache License 2.0
236 stars 53 forks source link

Example request: Connecting to a secured Zookeeper #36

Closed manchuwook closed 5 years ago

manchuwook commented 5 years ago

How would I connect to a secured instance of Zookeeper using this library? Would it just know which directory has the correct SSL certs?

shayhatsor commented 5 years ago

Unfortunately, when i ported the code from JAVA I didn't implement the SASL layer.

manchuwook commented 5 years ago

It's hard to find a library that does implement SASL. :C

shayhatsor commented 5 years ago

if you're interested in securing the transport between ZooKeeper clients and servers, you can use nginx to SSL encrypt the tcp stream: https://www.nginx.com/resources/admin-guide/nginx-tcp-ssl-upstreams/. this requires having nginx installed in both clients and servers, i've been using this method in production and it works great. if you're interested in an example config, i can paste something here.