Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZOOKEEPER-4790: Make client hostname verification configurable #2173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nightkr
Copy link

@nightkr nightkr commented Jun 17, 2024

FIPS mode technically covers this, in a sort of sledgehammery way, but I think it's still worthwhile to have an explicit option for this and only this. Especially since FIPS compliance is a pretty broad thing (see ZOOKEEPER-4832) that will likely expand in the future to cover a lot of things that may or may not be desired.

@anmolnar
Copy link
Contributor

anmolnar commented Aug 27, 2024

Accidentally closed the PR, sorry.
Wanted to ask:

Have you considered replacing the current apporach with separate config settings?

  • zookeeper.ssl.(quorum.)server.hostnameVerification
  • zookeeper.ssl.(quorum.)client.hostnameVerification

@nightkr
Copy link
Author

nightkr commented Aug 27, 2024

In a green field I think that makes sense, but I don't think it's worth breaking the old config value "just" for this.

@anmolnar
Copy link
Contributor

In a green field I think that makes sense, but I don't think it's worth breaking the old config value "just" for this.

You can keep backward compatibility by parsing both zookeeper.ssl.server.hostnameVerification and zookeeper.ssl.hostnameVerification as the server setting.

@@ -1739,6 +1739,12 @@ and [SASL authentication for ZooKeeper](https://cwiki.apache.org/confluence/disp
Disabling it only recommended for testing purposes.
Default: true

* *ssl.clientHostnameVerification* and *ssl.quorum.clientHostnameVerification* :
(Java system properties: **zookeeper.ssl.clientHostnameVerification** and **zookeeper.ssl.quorum.clientHostnameVerification**)
**New in (INSERT VERSION HERE):**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.9.3

* *ssl.clientHostnameVerification* and *ssl.quorum.clientHostnameVerification* :
(Java system properties: **zookeeper.ssl.clientHostnameVerification** and **zookeeper.ssl.quorum.clientHostnameVerification**)
**New in (INSERT VERSION HERE):**
Specifies whether the client's hostname verification is enabled in client and quorum TLS negotiation process.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add that this setting will require server hostnameVerification setting to be true.

@anmolnar
Copy link
Contributor

anmolnar commented Aug 27, 2024

@nightkr Ignore my previous comment. Since client hostname verification is bound to server hostname verification setting, it makes sense to keep the original and general hostnameVerification setting. It enables/disabled the entire feature. Your patch is good as it is, just elaborate a bit in the admin documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants