Skip to content

Revert "Verify the server certificate hostname on outbound TLS connections" - #125569

Merged
fm4v merged 2 commits into
masterfrom
fomichev/revert-116724
Oct 13, 2026
Merged

fm4v merged 2 commits into
masterfrom
fomichev/revert-116724

Conversation

@fm4v

@fm4v fm4v commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Reverts #116724.

Turning on openSSL.client.extendedVerification by default breaks clickhouse-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 to false until 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):

  • Backward Incompatible Change

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. Set openSSL.client.extendedVerification to true to enable the check.


Workflow [PR]
Sync PR [sync-upstream/pr/125569]

Version info

  • Merged into: 26.10.1.2318-master (included in 26.10 and later)

fm4v added 2 commits October 13, 2026 09:57
…outbound-hostname"

This reverts commit c67f0b1, reversing
changes made to cbc807e.
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.
@mintlify

mintlify Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
ClickHouse-docs 🟢 Ready View Preview Oct 13, 2026, 8:33 AM

@clickhouse-gh

clickhouse-gh Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [c99e008]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added pr-backward-incompatible Pull request with backwards incompatible changes comp-authentication Identity verification: users, credentials, auth methods, external auth providers. labels Oct 13, 2026
@fm4v
fm4v added this pull request to the merge queue Oct 13, 2026
Merged via the queue into master with commit 4838a5f Oct 13, 2026
178 checks passed
@fm4v
fm4v deleted the fomichev/revert-116724 branch October 13, 2026 19:23
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 13, 2026
@rschu1ze

Copy link
Copy Markdown
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).

This branch was successfully deployed

1 active deployment
staging - docs — c99e008f Deployed Oct 13, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-authentication Identity verification: users, credentials, auth methods, external auth providers. pr-backward-incompatible Pull request with backwards incompatible changes pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants