Skip to content

Antalya 26.6 Backport of #127318 - Distrust the compromised eMudhra certificates - #2698

Merged
zvonand merged 2 commits into
antalya-26.6from
backports/antalya-26.6/127318
Oct 27, 2026
Merged

zvonand merged 2 commits into
antalya-26.6from
backports/antalya-26.6/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:

  • 45894b9: cherry-pick with the conflicts committed as-is

  • 384f803: resolution

  • tests/integration/test_embedded_ca_certificates/test.py: modify/delete conflict, because this test isn't on antalya-26.6. The PR only lowered its > 100 thresholds to > 50, so I removed the file with git rm.

  • The Poco DistrustedCertificates files, the SSLManager::verifyCallback hook and gtest_distrusted_certificates.cpp applied without conflicts; there are no conflict markers left.

  • The contrib/grpc bump (a703d1f → 68b2fe0, updated roots.pem) has the same base on antalya-26.6 as upstream, so it applies unchanged.

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [4273040]

Removed the modify/delete-conflicted integration test, which doesn't exist on antalya-26.6; the rest of the PR (distrust check, gtest, grpc CA bundle bump) applied without conflicts.
@zvonand
zvonand force-pushed the backports/antalya-26.6/127318 branch from 384f803 to 4273040 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

CI triage for #2698 (backport of ClickHouse#127318 — distrust eMudhra certificates)

Verdict: 8 red checks → 1 PR-related (DCO, metadata only), 7 not PR-related (infra + pre-existing/flaky). No functional test failure is attributable to this change. The PR's own validation is green: all Builds, Fast test, Unit tests (asan_ubsan) — which runs the new gtest_distrusted_certificates — and the bulk of stateless/integration, SQLLogic, SQLStorm, stress and regression suites all pass. The grpc submodule bump is expected (it's the CA-bundle part of the upstream PR).

PR-related

1. DCO — fail ✅ the only one you need to act on.
Both commits lack a Signed-off-by: trailer (the upstream merge 45894b9 and the conflict-resolution commit 4273040), which is exactly what cncf/dco2 enforces.
Fix (author action — I can't do it, it needs a history rewrite + force-push, outside my permissions):

git rebase --signoff antalya-26.6
git push --force-with-lease origin backports/antalya-26.6/127318

or have a maintainer override the DCO gate per Altinity's backport workflow.

Not PR-related

2. Integration tests (amd_asan_ubsan, db disk, old analyzer, 3/8 & 7/8) — infra.
73 failures across these shards all share one root cause — the server container never starts:

Timed out while waiting for instance ... to start ...
bash: line 1: /usr/bin/clickhouse: cannot execute: required file not found

The CH binary can't be executed inside the integration-test containers (artifact/image problem), so whole modules fail at cluster.start(): test_database_glue, test_cas_gcs, test_datalake_glue_token_forwarding, test_storage_s3/test_sts. None touch TLS/cert code. → Re-run the shards.

3. Integration tests (4/8), plus the iceberg subset of 3/8 — pre-existing/flaky.
These are genuine assertions in Iceberg min/max pruning, not container failures:

test_storage_iceberg_with_spark/test_minmax_pruning.py  -> assert 0 == 3
test_storage_iceberg_no_spark/test_writes_statistics_by_minmax_pruning.py

Iceberg storage pruning is unrelated to certificate verification. Pre-existing/flaky on the target branch. → Re-run; if persistent, track separately from this PR.

4. Stateless (amd_asan_ubsan, distributed plan, parallel, 1/2) & (amd_asan_ubsan, cas s3 storage, parallel, 1/2) — pre-existing flaky crash.
Both report Failed: 0 but are red because the server died with a logical error in memory-efficient distributed aggregation:

Logical error: 'GroupingAggregatedTransform pushed bucket N twice'
  src/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.cpp

This PR changes only base/poco/NetSSL_OpenSSL/* + a gtest + the grpc submodule; it cannot reach the aggregation pipeline. Known-flaky area (parallel replicas / two-level aggregation). → Re-run.

5. Stateless (amd_binary, cas s3 storage, parallel) — flaky/infra.
One failure, 03100_lwu_50_subcolumn_skip_index. Praktika's own auto-rerun diagnosis: "Runs: 56, Failed: 0 … not reproducible (likely a transient issue)." Root cause is a CAS-S3 transport blip:

CasBlobPublishAttempt ... Connection refused (e.code()=111) ... bucket test

→ Safe to re-run.

6. Stateless (amd_debug, distributed plan, s3 storage, sequential) — infra.
Fails at Install ClickHouse / Decompressing the binary — binary download/unpack, before any test runs. Same class as #2. → Re-run.

Bottom line

The certificate-distrust change itself is healthy — it compiles on every build config and its dedicated unit test passes under asan/ubsan. The only item requiring action is DCO (add Signed-off-by via a --signoff rebase, or maintainer override). Everything else is infra or pre-existing/flaky and should be cleared by re-running those jobs.

🤖 Generated with Claude Code

@zvonand
zvonand merged commit 5eacef2 into antalya-26.6 Oct 27, 2026
300 of 316 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