Repository navigation
fix: reject compromised eMudhra keys in Rust TLS builds - #179246
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesUpdates Rust WebPKI verification and desktop root certificates to distrust the disclosed eMudhra incident keys and emSign ECC G3 root. Example: A standard WebPKI client validates an incident chain using the affected CA store.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain Keep this PR open: it is maintainer-authored, addresses a verified upstream security change, and contains a minimal lockfile update with no identified code defect. Priority: P1 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe shared Rust Gateway client and Tauri desktop dependency graphs supply TLS verification for network connections; certificate chains enter the verifier, and successful verification permits application traffic under the selected trust policy. flowchart TD
A[Remote TLS peer] --> B[Rust TLS client]
B --> C[Selected trust policy]
C --> D[WebPKI verification]
C --> E[Native policy or explicit pin]
D --> F[Reject or permit application traffic]
E --> F
Technical reviewBest possible solution: Retain the minimal upstream lockfile updates and complete the authority-boundary evidence before merging through the existing CI gates. Do we have a high-confidence way to reproduce the issue? Current-main locks select the older verifier, and upstream source confirms the new release adds explicit incident-key rejection; the reported 12-chain comparison was not independently executed during this read-only review. Is this the best way to solve the issue? Updating the existing dependency owners is the smallest complete fix for the stated standard-WebPKI scope, without adding a fork, override, or competing trust implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bbfdaf4795f8. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: unit tests only. SecurityNeeds attention: No supply-chain regression was identified, but final-effect authority evidence remains incomplete. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Other 0. Total 0 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 21, 2026, 4:07 AM ET / 08:07 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Source: a3512ef Main lineage: #179249 and #179246. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Rust builds still select WebPKI and root data released before the disclosed eMudhra intermediate-key compromise.
User Impact
Rebuilt standard WebPKI clients reject the disclosed incident chains even with the old affected CA roots present. The updated root dataset also distrusts emSign ECC G3, including legitimate chains relying exclusively on that anchor. Existing installed binaries need a subsequent build and release; native platform verifiers and explicit leaf-pin policies retain their separate contracts.
Why This Change Was Made
Regenerate the two owned locks with compatible rustls-webpki 0.103.16 and desktop webpki-root-certs 1.0.10. Only the three selected version/checksum entries change. No manifest, override or dependency fork is added.
Evidence
cargo metadata --locked --no-depspasses.CertDistrusted.cargo test --manifest-path crates/Cargo.toml --locked --workspace: 147 tests passed, plus doc tests.git diff --checkpasses.Proof ran in a task-owned, secretless Linux arm64 UTM guest. Native desktop packaging and its OS-specific verifier paths remain for owning CI/platform validation. No image/release publication, deployment or restart is included.
Landing qualification
Exact-head CI completed. The failed core tooling typecheck reports TS2345 at
test/scripts/ci-changed-node-test-plan.test.ts:813:33and:891:33:CompactNodeTestShardlacks the requiredconfigsfield. These calls entered main in0f750efb137b20adf321409d3e30291363cb75e7before either PR; the failure classifier compared against an earlier scheduled main run. Inspection of the actual CI merge checkout confirms the failing test, planner, dependency and workflow inputs are identical to its main parent. Only that inherited failure and its aggregate CI gate are red. The native pre-existing-failure landing route retains those failed results; it does not claim green CI. Independent security and other enforced gates still apply.The Linux, macOS and Windows desktop jobs and Windows installer check passed on this head. The retained verifier output contains twelve
Ok(ServerCertVerified(()))results before the change and twelveErr(InvalidCertificate(Other(OtherError(CertDistrusted))))results after it, using the affected 150-root data. This exercises the selected standard WebPKI verifier. An authenticated Gateway flow or a different native/custom verifier was not exercised. The advisory request for additional application transport evidence remains a stated qualification, rather than an identified defect in this compatible lock update. Existing installed binaries still need replacement builds through their release owners.