Repository navigation
Refresh enclave TLS trust after eMudhra intermediate compromise - #1185
Merged
Merged
Conversation
AnthonyRonning
marked this pull request as ready for review
October 21, 2026 00:04
This was referenced Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refresh the enclave's generated CA bundle from NSS 3.126 to 3.131.1 and update the Rust TLS root/verifier packages after the eMudhra intermediate-key compromise. Keep the pinned Nix framework and kernel derivation unchanged.
Reviewed version delta
rustls-webpki0.103.14 → 0.103.16 adds distrust of the eight affected intermediate public keys, including cross-signed chains. Its AWS-LC ML-DSA FIPS metadata also changes; this app selects Ring for its Rust TLS provider.webpki-rootsandwebpki-root-certs1.0.8 → 1.0.10. The compiledwebpki-rootsset removes emSign ECC G3 and Atos TrustedRoot 2011, adds SECOM TLS ECC/RSA 2024 and Telia EC/RSA v3, and retains emSign C1/C3/G1. This set is distinct from the generated NSS bundle; the verifier update covers the affected intermediate keys.Version delta and compatibility
CertDistrustederror takes rustls 0.23.46's existing genericCertificateError::Othermapping, so a rejected chain may have a generic outward TLS diagnostic.webpki-rootsandwebpki-root-certs1.0.8 → 1.0.10 update static roots: 1.0.9 adds four Telia/SECOM TLS roots and removes Atos TrustedRoot 2011; 1.0.10 removes emSign ECC G3. Chains depending on removed roots or the blocked keys will fail intentionally where those trust paths are selected. The selected user-ramdisk CA gate is build-input evidence; final EIF extraction, compiled Rustls trust behavior, and deployed TLS remain separate release checks.PR-only EIF rootfs diagnostic
Signed commit
e83a5cfd3a36015db015485dff0075b9ac7c5767adds a fail-closed check after each unsigned Dev/Prod PR candidate build. Signed commit7841ea20508fc49b56b62016c90b633f56cf0b32handles a cached final EIF: Nix can substitute that output without materializing its user ramdisk input. The verifier now finds the unique direct user-ramdisk derivation in the EIF'sinputs.drvs, checks its output against the path inramdisksArgs, and explicitly realizes that exact input withnix build --no-link. Nix may substitute the ramdisk or build it if no substitute is available.The check inspects the selected user-initramfs CPIO, verifies Nitro init's
/cmdselects/bin/entrypoint, resolves the entrypoint's CA path, and hashes the CA bytes inside the archive. Those archived bytes are the primary CA evidence. If the separate CA store path is materialized, its bytes must match the archive; otherwise the report saysnot_materialized. The archived bundle must omit the three affected emSign roots. If Comodo AAA remains in the full bundle, the check requires it to be absent from ordinary TLS PEM roots and explicitly rejected by OpenSSL for server trust. The check also matches candidate EIF/PCR bytes, checksums, and handoff data to the Nix output and PR merge-ref SHA, then prints hashes, comparison status, and PCRs in the job summary.This is a no-upload PR diagnostic: it produces no GitHub artifact, signed or attested release handoff, approval, or deployment. Existing Nix cache behavior can still retain build outputs. It inspects the user ramdisk input consumed by the EIF builder, not a separately extracted final EIF. OpenSSL purpose and ordinary-PEM checks do not establish the compiled Rustls client's runtime trust behavior.
Validation and current evidence
d7cf6d20670ce32328f05cb6f2a161fc7912396dreceived independent code and dependency review: GO for candidate CI.d7cf6d2, hosted CI passed Dev and Prod unsigned EIF candidate builds, backend format/lint/tests, Nix checks/package, SDK integration, and Rust advisory checks. Those candidate hashes belong to that previous head.e83a5cfd, both hosted candidate jobs fetched the cached final EIF and then failed because its user ramdisk was absent locally. This exposed an input-realization assumption in the diagnostic; it was not a CA trust finding.7841ea205, the local focused diagnostic suite (11 tests), workflow suite (55 tests), targeted Darwin Nix workflow check, and repository pre-commit suite (486 tests) passed. Hosted Dev and Prod ARM64 candidate jobs also passed the build and user-ramdisk CA gate; both steps executed. Candidate EIF SHA-256: Dev0d306732feb0735b64b872b3048092764a9835cba84ce0cf6a2b31192217391d; Prod8c1eb439803f47c1fa4339e1c4b981c4e0a38b5a072d4b4a147efc0e2bfc97c7.81ffe9877138a9e9bee56e067479a5abd59c65cdbb310d830b13108e1afe4e33. The gate excludes emSign C1/C3/G3 and reportscomodo_aaa_tls_policy=retained_rejected_for_openssl_tls. Both jobs reportca_store_comparison=not_materialized: the separate Nix store CA object was absent, so archive-to-store byte comparison did not run. This is unsigned PR merge-ref/input-ramdisk evidence, not final EIF extraction, master release/attestation, approval, or runtime TLS proof.7841ea20508fc49b56b62016c90b633f56cf0b32merged as master commit7c408ea52228ba55d8c31ab72148963cf44f3d0f.Release gates
The master release build and its downloadable artifact/attestation, output/rootfs inspection, measured PCR and protected approval updates, legacy PCR mirror publication, encrypted origin/app smokes, and a separately controlled deployment remain required. This PR does not establish live trust behavior or evidence of an attack. Do not deploy based on PR candidate checks.