Skip to content

Cherry pick #127318 to 26.7: Distrust the compromised eMudhra certificates - #127573

Merged
robot-clickhouse merged 6 commits into
backport/26.7/127318from
cherrypick/26.7/127318
Oct 23, 2026
Merged

robot-clickhouse merged 6 commits into
backport/26.7/127318from
cherrypick/26.7/127318

Conversation

@robot-clickhouse-ci-2

Copy link
Copy Markdown
Contributor

Original pull-request #127318

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Before you resolve anything

Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

alexey-milovidov and others added 5 commits October 22, 2026 02:48
The private keys of eight eMudhra intermediate CAs issued in 2025 can be recovered
from their certificates. Reject any certificate chain that contains one of them, or
one of the roots that issued or cross-signed them (`emSign Root TLS CA - G3`,
`emSign Root CS CA - G3`, `emSign ECC Root CA - G3`), regardless of the trust store
it was built from, including the trust store of the operating system. The keys are
identified by the SHA-256 of their `SubjectPublicKeyInfo`, so the cross-signed
certificates of the same keys (issued by Sectigo `AAA Certificate Services`) are
rejected as well. The check is done in `Poco::Net::SSLManager::verifyCallback`.

Also update the CA certificates embedded into the binary (`contrib/grpc/etc/roots.pem`)
from the Chromium root store, which removes `emSign ECC Root CA - G3`.

Related: https://emudhra.we-have-a-problem.com/
Related: ClickHouse/grpc#46
Related: grpc/grpc#43699

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The updated root store embeds 99 certificates, so lower the threshold in
`test_embedded_ca_certificates` from 100 to 50.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Distrust the compromised eMudhra certificates
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request labels Oct 23, 2026
…rypick/26.7/127318

# Conflicts:
#	tests/integration/test_embedded_ca_certificates/test.py
@robot-clickhouse
robot-clickhouse merged commit 6c9da92 into backport/26.7/127318 Oct 23, 2026
1 check passed
@robot-clickhouse
robot-clickhouse deleted the cherrypick/26.7/127318 branch October 23, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants