zookeeper icon indicating copy to clipboard operation
zookeeper copied to clipboard

ZOOKEEPER-4990: accept ssl.* in client config

Open seekskyworld opened this issue 10 months ago • 2 comments

Summary:

  • Allow ZKClientConfig to fall back to server-style ssl.* keys when zookeeper.ssl.* is absent.
  • Add test coverage for the fallback and precedence behavior.
  • Document zkCli TLS client.properties usage.

Motivation: Client config files copied from zoo.cfg (ssl.* keys) don’t populate zookeeper.ssl.* today, which can lead to TLS handshake failures. This makes zkCli client configuration compatible with server-style keys while keeping zookeeper.ssl.* as the preferred form.

Validation:

  • mvn -pl zookeeper-server -Dtest=ZKClientConfigTest test (Passed)

seekskyworld avatar Jan 12 '26 09:01 seekskyworld

All checks are passing and test coverage has been added.

When convenient, could a committer please review and merge if everything looks good?

Thank you for your time.

anusha975 avatar Feb 21 '26 16:02 anusha975

Oh, I see know. These properties already work fine in the client config if the zookeeper. prefix is present. You actually want to use your zoo.cfg server config file for client configuration without modification.

anmolnar avatar Apr 17 '26 15:04 anmolnar