Repository navigation
feat(sev-snp): judge the TCB status against configured AMD bulletins - #1621
Merged
Merged
Conversation
kvinwang
force-pushed
the
feat/per-platform-tcb-policy
branch
from
November 19, 2026 03:43
e1eb37e to
dbd676a
Compare
kvinwang
marked this pull request as ready for review
November 19, 2026 03:43
kvinwang
force-pushed
the
feat/per-platform-tcb-policy
branch
from
November 19, 2026 04:15
1a710dd to
f647db9
Compare
Signed-off-by: Kevin Wang <wy721@qq.com>
Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang
force-pushed
the
feat/per-platform-tcb-policy
branch
from
November 19, 2026 04:46
f647db9 to
776f26e
Compare
kvinwang
enabled auto-merge
November 19, 2026 04:46
This was referenced Nov 19, 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.
Stacked on #1620. That PR binds
reported_tcbto the VCEK, and this one relies on that value being authentic.Problem
SEV-SNP's
tcb_statusdoesn't mean what TDX's does. On TDX,UpToDatecomes from Intel's TCB info: the platform is at the latest TCB Intel publishes. On SNP, it only meant that the current, reported, committed and launch TCBs are equal. A host on years-old, vulnerable firmware still reportedUpToDate.DstackKmsandDstackApp.requireTcbUpToDategate on that string, so this gave SNP a false pass.Fix
AMD publishes no TCB status, so the verifier now judges the report against a list of AMD bulletins configured in
[core.attestation] sev_snp_tcb_requirements. Each entry gives a product family, an advisory ID and the minimum TCB that fixes it.advisory_idsand the status isOutOfDate.UpToDate.The reported TCB is the one the VCEK certifies. The committed TCB bounds a firmware rollback. The launch TCB is the firmware the guest first ran under. The status now lives on
VerifiedAmdSnpReport.tcb_status, andAmdSnpTcbInfo::tcb_status()is removed. The contracts andBootInfoare unchanged.Behavior change
An SNP deployment without
sev_snp_tcb_requirementsnow reports an empty status, which the on-chainUpToDatecheck rejects. SNP is experimental. Operators list the bulletins before upgrading. I chose to fail closed rather than keep reporting a falseUpToDate.No bulletin values ship by default. The minimum TCBs must come from AMD's bulletins, so they are left to the operator.
Verification
configured_tcb_requirements_judge_the_real_reportruns the real Milan fixture throughQuoteVerifierwith no requirement (empty status), a met one (UpToDate) and an unmet one (OutOfDatewith its advisory).cargo test -p sev-snp-qvl -p dstack-attest -p dstack-verifier -p dstack-kms -p dstack-tee-simulator -p mock-attestation -p dstack-auth --all-featurespasses.