python-zk / kazoo

Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.
https://kazoo.readthedocs.io
Apache License 2.0
1.3k stars 386 forks source link

Add support for SNI hostnames #754

Closed jessesightler-redhat closed 1 month ago

jessesightler-redhat commented 2 months ago

What would you like to be added

Send the SNI header with TLS connections.

Why is this needed

Currently when connecting to TLS hosts, only the IP is used. Some sites are behind passthrough proxies that proxy based upon hostname in the SNI header. Without support for SNI, these zookeeper ensembles cannot be reached via the library.