Skip to content

Stable 24.8 Backport of #127318 - Distrust the compromised eMudhra certificates - #2705

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

zvonand merged 2 commits into
releases/24.8.14from
backports/releases/24.8.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:12
…-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))
Backported the Poco eMudhra check unchanged; kept 24.8's contrib/grpc commit and dropped the embedded-CA test, since 24.8 has no embedded CA bundle.
@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:

  • 92bce94: cherry-pick with the conflicts committed as-is

  • 8dc37fb: resolution

  • contrib/grpc: both sides changed the submodule. I kept 24.8's commit (1716359d2e…) because the upstream bump only refreshes roots.pem, which 24.8 doesn't embed in the binary.

  • tests/integration/test_embedded_ca_certificates/test.py: deleted on 24.8, changed upstream. The test covers a feature 24.8 lacks, so I removed it.

  • The Poco check (DistrustedCertificates.{h,cpp}, the SSLManager::verifyCallback hook) and its gtest applied cleanly. I only fixed one comment in SSLManager.cpp that mentioned an embedded trust store.

@altinity-robot

altinity-robot commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

This is an automated comment for commit 8dc37fb with description of existing statuses. It's updated for the latest CI running

✅ Click here to open a full report in a separate page

Successful checks
Check nameDescriptionStatus
AST fuzzerRuns randomly generated queries to catch program errors. The build type is optionally given in parenthesis. If it fails, ask a maintainer for help✅ success
BuildsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Compatibility checkChecks that clickhouse binary runs on distributions with old libc versions. If it fails, ask a maintainer for help✅ success
Docker keeper imageThe check to build and optionally push the mentioned image to docker hub✅ success
Docker server imageThe check to build and optionally push the mentioned image to docker hub✅ success
Grype Scan altinityinfra/clickhouse-keeper:2705-24.8.14.10549.altinitytestThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Grype Scan altinityinfra/clickhouse-server:2705-24.8.14.10549.altinitytest-alpineThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Grype Scan altinityinfra/clickhouse-server:2705-24.8.14.10549.altinitytestThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Install packagesChecks that the built packages are installable in a clear environment✅ success
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests✅ success
Ready for releaseThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release aggregate_functions_1There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release aggregate_functions_2There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release aggregate_functions_3There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release atomic_insertThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release benchmark_aws_s3There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release benchmark_gcsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release benchmark_minioThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release clickhouse_keeper_failoverThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release clickhouse_keeper_no_ssl_1There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release clickhouse_keeper_no_ssl_2There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release clickhouse_keeper_ssl_1There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release clickhouse_keeper_ssl_2There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release exampleThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release extended_precision_data_typesThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release functionsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release iceberg_1There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release iceberg_2There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release kafkaThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release ldap_authenticationThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release ldap_external_user_directoryThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release ldap_role_mappingThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release memoryThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release parquetThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release parquet_aws_s3There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release parquet_minioThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release part_moves_between_shardsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release rbac_1There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release rbac_2There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release rbac_3There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_aws_s3_1There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_aws_s3_2There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_azure_1There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_azure_2There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_export_partThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_export_partitionThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_gcs_1There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_gcs_2There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_minio_1There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_minio_2There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release s3_minio_3There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release session_timezoneThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release settingsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release ssl_server_1There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release ssl_server_3There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release swarmsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release tiered_storage_localThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release tiered_storage_minioThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release tiered_storage_s3amazonThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Regression release window_functionsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Sign releaseThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Stateful testsRuns stateful functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Stress testRuns stateless functional tests concurrently from several clients to detect concurrency-related errors✅ success

@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 8dc37fbc

Verdict: 20 red checks, 0 caused by this PR. 19 are regression jobs whose runners died before any test ran (infra). The 20th is DCO, which is about commit sign-off, not code. Builds, stateless, stateful, integration (release/asan/old analyzer), AST fuzzers and the compatibility check all passed.

1. 19 × RegressionTestsRelease / …: infra (self-hosted runner lost)

Affected: Alter (attach 1/2, move, replace), Common (aes_encryption, base_58, data_types, datetime64_extended_range, disk_level_encryption, dns, engines, jwt_authentication, kerberos, key_value, lightweight_delete, selects, version), SSLServer (2), TieredStorage (s3gcs).

  • All 19 started between 10:31:55 and 10:32:09Z on run 40479339530. Each one ended exactly 10 min later.
  • Every job stopped in a setup step, before the suite ran: 17 in Checkout, 1 in Download json reports, 1 in Setup. No test executed.
  • Annotation on the jobs:

    The self-hosted runner lost communication with the server. Verify the machine is running and has a healthy network connection.

  • No logs were uploaded (gh run view --log → "log not found"), which fits a runner that died.
  • The 50+ other regression suites in the same run passed. That includes SSLServer (1) and SSLServer (3), the suites closest to this change (SSLManager::verifyCallback).

Next step: re-run the failed jobs (gh run rerun 40479339530 --failed). SSLServer (2) is the one worth checking after the re-run, since it actually exercises TLS verification.

2. DCO: process, not code

Neither commit (92bce94182 cherry-pick, 8dc37fbc3e conflict resolution) has a Signed-off-by: trailer. The sibling backport #2702 passed DCO. Two ways to clear it:

  • use "Set DCO to pass" on the DCO check page, or
  • re-sign the commits with git commit --amend -s / git rebase --signoff. That needs a force-push, which I'm not allowed to do, so it has to come from you.

3. CI running

This is the aggregate gate. It's red only because of the jobs above.

Notes on the backport itself (not CI failures)

  • The new gtest is not run by this CI. src/Common/tests/gtest_distrusted_certificates.cpp is picked up by unit_tests_dbms, but the 24.8 release-branch workflow has no unit-test job, only Python unit tests. So the build compiles the test but never runs it. If you want it checked, run unit_tests_dbms --gtest_filter='*Distrusted*' by hand.
  • Parts of upstream Distrust the compromised eMudhra certificates ClickHouse/ClickHouse#127318 were dropped: the contrib/grpc bump (the embedded CA bundle refresh) and tests/integration/test_embedded_ca_certificates. That test doesn't exist on 24.8, so leaving both out looks intentional and fine. But the changelog entry still says "The CA certificates embedded into the binary … are updated from the Chromium root store", which doesn't describe this backport. Consider removing that sentence.
  • The verifyCallback hunk matches upstream (+14 here vs +15 upstream, a comment-only difference).

Triage based on GitHub job metadata and check annotations. No local build or test run was done.

@zvonand
zvonand merged commit 8fd1dd1 into releases/24.8.14 Oct 27, 2026
234 of 255 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.

5 participants