Skip to content

Stable 25.3 Backport of #127318 - Distrust the compromised eMudhra certificates - #2708

Merged
zvonand merged 2 commits into
releases/25.3.14from
backports/releases/25.3.14/127318
Oct 27, 2026
Merged

zvonand merged 2 commits into
releases/25.3.14from
backports/releases/25.3.14/127318

Conversation

@zvonand

@zvonand zvonand commented Oct 27, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Hardening: certificate chains containing the compromised eMudhra intermediate CAs or the roots that issued them (emSign Root TLS CA - G3, emSign ECC Root CA - G3) are rejected even if the trust store of the operating system still trusts them. The CA certificates embedded into the binary (used only when the system has none) are updated from the Chromium root store. There is no security issue in typical use cases. (ClickHouse#127318 by @alexey-milovidov)

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

Algunenano and others added 2 commits October 27, 2026 10:23
…-certificates

Distrust the compromised eMudhra certificates

Conflicts committed as-is; the next commit resolves them:
- contrib/grpc (both modified)
- tests/integration/test_embedded_ca_certificates/test.py (modify/delete (deleted by us, changed by them))
Kept the Poco distrust check and its unit test; kept 25.3's gRPC pointer and dropped the integration test, because 25.3 has no embedded-CA-bundle feature.
@zvonand

zvonand commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Backporter: cherry-pick conflicts resolved by AI

Conflicted files:

  • contrib/grpc (both modified)
  • tests/integration/test_embedded_ca_certificates/test.py (modify/delete (deleted by us, changed by them))

Commits:

  • b7d049b: cherry-pick with the conflicts committed as-is

  • 27c2bec: resolution

  • contrib/grpc (both modified): the source PR bumps gRPC only to refresh the embedded roots.pem bundle, which 25.3 doesn't embed. I kept the 25.3 pointer fb3ee40e.

  • tests/integration/test_embedded_ca_certificates/test.py (modify/delete): this test covers the embedded-CA feature, which isn't in 25.3. I removed it with git rm.

  • The core change (DistrustedCertificates.h/.cpp, the hook in SSLManager::verifyCallback, gtest_distrusted_certificates.cpp) applied cleanly and is kept unchanged. The Poco build globs src/*.cpp, and the Poco Context API the test uses exists in 25.3.

@zvonand

zvonand commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

@blau-ai

@blau-ai

blau-ai commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

CI triage for 27c2bec

2 failing checks: 0 caused by this PR, 1 flaky (a startup race), 1 process/DCO. Everything else that has finished is green. One regression job (Common (lightweight_delete)) was still pending when I looked, and the run hasn't finished yet.

Check Verdict
Install packages (release): Run server init.d Flaky startup race, not this PR. Safe to re-run.
DCO Missing sign-off on the cherry-picked upstream merge commit. Not a code problem.

1. Install packages (release): Run server init.d

Only 1 of the 11 install steps failed. The other 10 passed with the same packages, including Install server deb (starts the server through systemd and queries it) and the rpm/tgz server installs. Log (run_server_init.d.log):

+ /etc/init.d/clickhouse-server start
Waiting for server to start
Server started
+ clickhouse-client -q 'SELECT version()'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)

The server log in the preserved-logs archive is only two lines, and the error log is empty:

10:52:14.470738 <Information> Application: Forked a child process to watch
10:52:14.471695 <Information> SentryWriter: Sending crash reports is disabled

Why this isn't the PR:

Next step: re-run the job. If you want to remove the race (separate PR, not needed here), give the init.d test the same retry loop the keeper test uses before SELECT version().

2. DCO

From the DCO check:

Commit Result
🔴 b7d049b Merge pull request #127318 from ClickHouse/distrust-emudhra-certificates (author: Raúl Marín, upstream) Sign-off not found
🟢 27c2bec Resolve conflicts in backport of #127318 Skipped: sign-off not required for members

The cherry-picked upstream merge commit keeps its upstream author, who isn't an Altinity org member, and upstream commits don't carry Signed-off-by. The sibling backports pass because their cherry-picked commits are authored by clickhouse-gh[bot]. No code change is needed. You can either:

  • have a maintainer override or ignore DCO for this backport, or
  • add a remediation commit, if third-party remediation is enabled for the DCO app. The bot's other suggestion, git rebase --signoff plus a force-push, rewrites history; I won't do that, since force-pushing is outside my permissions.

Overall: the backport looks healthy. Builds, unit tests (which include the new gtest_distrusted_certificates), stateless/integration and the regression suites that have finished are all green. Re-run Install packages (release) and handle DCO as a process exception.

@zvonand
zvonand merged commit a9ec2da into releases/25.3.14 Oct 27, 2026
256 of 260 checks passed
@zvonand zvonand added the verified Approved for release label Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants