Skip to content

Stable 26.3 Backport of #127318 - Distrust the compromised eMudhra certificates - #2696

Merged
zvonand merged 2 commits into
stable-26.3from
backports/stable-26.3/127318
Oct 27, 2026
Merged

zvonand merged 2 commits into
stable-26.3from
backports/stable-26.3/127318

Conversation

@zvonand

@zvonand zvonand commented Oct 26, 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)

…-certificates

Distrust the compromised eMudhra certificates

Conflicts committed as-is; the next commit resolves them:
- tests/integration/test_embedded_ca_certificates/test.py (modify/delete (deleted by us, changed by them))
@zvonand

zvonand commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

Backporter: cherry-pick conflicts resolved by AI

Conflicted files:

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

Commits:

  • 6b5a6d6: cherry-pick with the conflicts committed as-is

  • 24be156: resolution

  • tests/integration/test_embedded_ca_certificates/test.py: modify/delete conflict. The test doesn't exist on stable-26.3 because the embedded CA fallback feature (system.certificates path (embedded)) was never backported.

  • The PR only changed that test's expected count from > 100 to > 50, so I removed the file with git rm.

  • The core change (Poco DistrustedCertificates, the SSLManager::verifyCallback check, the gtest, the contrib/grpc roots.pem bump) applied without conflicts and is kept unchanged.

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [7d01ad6]

Dropped the integration test change because stable-26.3 doesn't have `test_embedded_ca_certificates` or the embedded CA fallback; the rest of the PR applied unchanged.
@zvonand
zvonand force-pushed the backports/stable-26.3/127318 branch from 24be156 to 7d01ad6 Compare October 26, 2026 16:25
@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

Triaged CI for this backport (head 7d01ad6). 4 failing checks — none are caused by this PR's code. The change itself (Poco DistrustedCertificates + SSLManager::verifyCallback + grpc submodule bump + new gtest) is healthy: every check that actually exercises it is green — all Builds (amd_debug/asan/ubsan/binary/release), Unit tests (asan) fail: 0, passed: 11005 and Unit tests (ubsan) fail: 0, passed: 11008 (these include the new gtest_distrusted_certificates), Fast test, and the other 20+ stateless/integration shards.

Check Verdict Cause
DCO ⚠️ Needs action (not a code bug) Commits missing Signed-off-by
Stateless (amd_debug, parallel) — 2 fails Flaky / slow Test timeouts on debug build
Integration (amd_asan, old analyzer, 5/8) — 16 fails Infra Container couldn't start clickhouse
Integration (amd_binary, 4/5) — 16 fails Infra Same as above

DCO — ⚠️ needs a sign-off (only real action item)

cncf/dco2 fails because neither backport commit has a Signed-off-by trailer:

Fix (requires rewriting history + force-push, which is outside my permissions — a maintainer needs to do it):

git rebase --signoff stable-26.3
git push --force-with-lease origin HEAD:backports/stable-26.3/127318

Stateless tests (amd_debug, parallel) — not PR-related, re-run

Both failures are timeouts, not assertion failures, on the slow debug build:

  • 04033_tpc_ds_q14 — Reason: Timeout! (heavy TPC-DS query, known slow on debug)
  • 03634_autopr_input_bytes_estimation — Reason: Timeout!

Neither touches TLS/certificate code. This PR cannot affect query timing. Safe to re-run.

Integration tests (both shards) — infra, not PR-related, re-run

All 16 failures in each shard are the single module test_database_glue/test.py, and every one fails in the started_cluster fixture before any test logic runs:

File: test_database_glue/test.py:281 - in started_cluster
    cluster.start()
...
E   Exception: Timed out while waiting for instance `sts.us-east-1.amazonaws.com' ... to start.
E   bash: line 1: /usr/bin/clickhouse: cannot execute: required file not found

The ClickHouse binary in the test container couldn't execute — a runner/image provisioning problem, unrelated to a certificate-trust change. Safe to re-run.


Bottom line: the backport looks correct and complete (the conflict resolution correctly dropped test_embedded_ca_certificates, which doesn't exist on stable-26.3). The only thing blocking a green run that needs a human is the DCO sign-off; the three red test suites are flaky/infra and should clear on a re-run.

@zvonand
zvonand merged commit 233f62c into stable-26.3 Oct 27, 2026
272 of 280 checks passed
@zvonand zvonand added the verified Approved for release label Oct 27, 2026
@blau-ai blau-ai mentioned this pull request Oct 27, 2026
9 of 30 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants