Repository navigation
Revert "Verify the server certificate hostname on outbound TLS connections" - #125569
Merged
Merged
Conversation
Setting the peer host name on the Keeper socket is correct regardless of the `extendedVerification` default (it also puts the host into SNI), and `test_keeper_secure_client` passes with either default. Keeping it avoids a conflict with code built on top of it in the private repository.
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
Member
|
I'm not sure we really understood what we fixed or reverted. Anyways, please check if #35504 needs to be re-opened (the issue which the reverted PR addressed). |
mkmkme
pushed a commit
to Altinity/ClickHouse
that referenced
this pull request
Oct 17, 2026
…116724 Revert "Verify the server certificate hostname on outbound TLS connections"
This was referenced Oct 17, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #116724.
Turning on
openSSL.client.extendedVerificationby default breaksclickhouse-client --tls-sni-override, which is how replica-aware routing in ClickHouse Cloud is used: the client checks the certificate against the SNI override name, while the server presents a certificate that names only--host. The forward fix, #125407, is not ready, so the default goes back tofalseuntil hostname verification can be turned on without breaking these setups.The Keeper part of the original change (passing the configured host name to the secure socket, plus its test in
test_keeper_secure_client) is kept: it is correct with either default and only adds SNI while verification is off.Related: #116724
Related: #125407
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Outbound TLS connections no longer verify that the server certificate names the host by default (reverts #116724), because it broke
clickhouse-client --tls-sni-override. SetopenSSL.client.extendedVerificationtotrueto enable the check.Workflow [PR]
Sync PR [sync-upstream/pr/125569]
Version info
26.10.1.2318-master(included in26.10and later)