Repository navigation
chore(deps): use sev from the branch of virtee/sev#418 (rsa 0.10, p384 0.14) - #12377
basvandijk wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The dependency pin enables getrandom 0.4 without the required Cargo Wasm backend configuration, breaking registry and other attestation-dependent canister builds.
1 open issue
What changed in this PR
Temporarily pins sev to the commit from virtee/sev#418, updating the cryptographic dependencies used for SEV attestation. This builds on #12374’s dependency refresh and removes rsa 0.9.10 from the dependency graph.
Changes:
- Pins the same
sevrevision in Cargo and Bazel, with TODOs to return to a crates.io release. - Migrates SEV verification to rsa 0.10, p384 0.14, and x509-cert 0.3.
- Refreshes lockfiles, removing older cryptographic packages and recording updated dependencies and features.
| File | Description |
|---|---|
| Cargo.toml | Pins the workspace sev dependency to the fork commit. |
| Cargo.lock | Records the Cargo dependency migration and removes obsolete versions. |
| Cargo.Bazel.toml.lock | Records matching dependency versions for Bazel. |
| Cargo.Bazel.json.lock | Updates Bazel source metadata, dependencies, and resolved features. |
| bazel/rust.MODULE.bazel | Mirrors the sev Git pin in Bazel’s dependency declarations. |
Review effort: Balanced
|
✅ No security or compliance issues detected. Reviewed everything up to 0b6bf37. Security OverviewDetected Code Changes
|
Point sev at the head of virtee/sev#418, which moves sev to rsa 0.10, p384 0.14 and x509-cert 0.3, until a sev release includes it. This removes rsa 0.9.10 (RUSTSEC-2023-0071), p384 0.13.1 and x509-cert 0.2.5 from both lock sets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n chain mock_amd_key_server_response.crt is a real VCEK from AMD's key server. Check that the chain the host provider builds from it passes sev's certificate checks (ARK self-signed, ARK signs ASK, ASK signs VCEK), and that a tampered copy or the Genoa chain is rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…32 builds sev from virtee/sev#418 enables the default features of p384 and rsa, which turn on getrandom 0.4. Without a backend selected, Cargo builds of canisters that link attestation (e.g. rs/nns/dfx.json's) fail for wasm32-unknown-unknown. Select getrandom's `unsupported` backend there, as bazel/rust.MODULE.bazel does for Bazel builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6f1b53e to
317a083
Compare
There was a problem hiding this comment.
This pull request changes code owned by the Governance team. Therefore, make sure that
you have considered the following (for Governance-owned code):
-
Update
unreleased_changelog.md(if there are behavior changes, even if they are
non-breaking). -
Are there BREAKING changes?
-
Is a data migration needed?
-
Security review?
How to Satisfy This Automatic Review
-
Go to the bottom of the pull request page.
-
Look for where it says this bot is requesting changes.
-
Click the three dots to the right.
-
Select "Dismiss review".
-
In the text entry box, respond to each of the numbered items in the previous
section, declare one of the following:
-
Done.
-
$REASON_WHY_NO_NEED. E.g. for
unreleased_changelog.md, "No
canister behavior changes.", or for item 2, "Existing APIs
behave as before.".
Brief Guide to "Externally Visible" Changes
"Externally visible behavior change" is very often due to some NEW canister API.
Changes to EXISTING APIs are more likely to be "breaking".
If these changes are breaking, make sure that clients know how to migrate, how to
maintain their continuity of operations.
If your changes are behind a feature flag, then, do NOT add entrie(s) to
unreleased_changelog.md in this PR! But rather, add entrie(s) later, in the PR
that enables these changes in production.
Reference(s)
For a more comprehensive checklist, see here.
GOVERNANCE_CHECKLIST_REMINDER_DEDUP
No significant canister changes.
There was a problem hiding this comment.
🔵 Needs a closer look
The unmerged cryptographic fork affects registry admission and GuestOS attestation, requiring security-owner review and end-to-end compatibility validation beyond the available certificate fixture tests.
No open issues 🎉
1 resolved since last review
Review effort: Balanced

Points
sevat the head of virtee/sev#418 (commit2539202729) until a sev release includes that PR. It moves sev to rsa 0.10, p384 0.14 and x509-cert 0.3. Stacked on #12374.Changes
Cargo.tomlandbazel/rust.MODULE.bazel:sevcomes fromhttps://github.com/DGonzalezVillal/virtee-sevatrev = "2539202729be739909c80ff807245e2030302557".crypto_nosslandsnpwithout defaults.cargo updateor./bin/bazel-pin.sh --fullcan't pick up new commits from it unnoticed.deny.tomldenies git sources outside the dfinity orgs, socargo deny check sourceswould flag this pin. CI runs only the advisories check.Lockfiles, identically in
Cargo.lockandCargo.Bazel.toml.lock:This clears RUSTSEC-2023-0071 (rsa 0.9.10). RUSTSEC-2026-0387 (crypto-bigint 0.5.5) stays: its only remaining holder is k256 0.13, which alloy still needs.
.cargo/config.toml(new): builds getrandom 0.4 with itsunsupportedbackend for wasm32-unknown-unknown, asbazel/rust.MODULE.bazeldoes for Bazel.std, which turns ongetrandom) and rsa (getrandom), which pull in getrandom 0.4.attestationwould fail. That includes the builds inrs/nns/dfx.json.RUSTFLAGSandCARGO_ENCODED_RUSTFLAGSreplace these flags.rs/ic_os/sev/host: new tests check the real AMD VCEK fixture (mock_amd_key_server_response.crt, fetched from AMD's key server):Behaviour changes
SEV attestation verification now runs on rsa 0.10, p384 0.14, x509-cert 0.3 and sha2 0.11. That covers the registry canister's
add_nodeand GuestOS's guest_upgrade and open_rootfs. In Bazel builds p384 0.14 uses the fiat backend (the existingp384annotation).signature error: verification errortosignature error. It appears inadd_nodeerrors.sev enables the default features of p384 and rsa, so Bazel builds them with more features. This applies to all targets, canisters included:
std,getrandomandprecomputed-tables;stdandgetrandom(so pkcs1 gainsstd);spin_no_std, so every target uses std'sOncein it.Compressed Wasm sizes:
The canisters still import only
ic0functions.