Skip to content

attestation-service: add default SNP appraisal - #216

Merged
jialez0 merged 1 commit into
openanolis:mainfrom
jialez0:agent/snp-ear-appraisal
Aug 5, 2026
Merged

jialez0 merged 1 commit into
openanolis:mainfrom
jialez0:agent/snp-ear-appraisal

Conversation

@jialez0

@jialez0 jialez0 commented Aug 5, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

  • add AMD SEV-SNP branches to the default EAR and OIDC appraisal policies
  • keep deployment-specific RVPS checks for the launch measurement and reported TCB as commented examples, consistent with the other platform branches
  • require Debug and Migration Agent to be disabled
  • expose the Turin+ FMC TCB value in parsed SNP claims
  • explicitly emit no filesystem claim for base SNP evidence, because it is not a dynamic runtime measurement
  • document optional SNP reference-value hardening and add positive and negative policy tests

Why

The SNP verifier already validated the report signature, endorsement chain, VCEK TCB extensions, VMPL, and REPORT_DATA, but the default token policies did not recognize SNP. Consequently, valid SNP evidence still produced a contraindicated EAR appraisal. The default policies now recognize successfully verified SNP evidence and reject unsafe Debug or Migration Agent policy bits. Relying parties can uncomment the documented measurement and TCB checks after provisioning their deployment-owned RVPS values.

Validation

  • cargo test -p attestation-service --no-default-features --features fs,snp-verifier --lib (34 passed)
  • cargo test -p verifier --no-default-features --features snp-verifier snp::tests --lib (20 passed)
  • cargo clippy -p attestation-service --no-default-features --features fs,snp-verifier --lib -- -D warnings
  • cargo clippy -p verifier --no-default-features --features snp-verifier --lib -- -D warnings
  • cargo check -p kbs --no-default-features --features coco-as-builtin-no-verifier,attestation-service/snp-verifier,attestation-service/fs
  • real Alibaba Cloud Linux 4 SEV-SNP guest evidence:
    • fresh empty RVPS work directories were used for the updated default policy; neither run queried an snp.* reference value
    • online AMD KDS path returned an EAR with ear.status=affirming
    • offline path removed all proxy variables, loaded the TCB-specific VCEK cache, made no KDS request, and also returned ear.status=affirming
  • end-to-end guest AA to Trustee KBS, including a rebuild from this PR head with an empty in-memory RVPS:
    • online AMD KDS path: attestation-agent-client get-token --token-type kbs returned an EAR with ear.status=affirming
    • offline path with all proxy variables removed: the TCB-specific VCEK cache was used, no KDS request was made, and the EAR was also affirming
    • both runs validated REPORT_DATA, performed no snp.* RVPS query, and returned HTTP 200 from /auth and /attest

Signed-off-by: Jiale Zhang zhangjiale@linux.alibaba.com

@jialez0
jialez0 force-pushed the agent/snp-ear-appraisal branch from 3a81df0 to 20af991 Compare August 5, 2026 11:18
@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,您的请求已接收,请耐心等待结果。

@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。

@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,您的请求已接收,请耐心等待结果。

@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。

Signed-off-by: Jiale Zhang <zhangjiale@linux.alibaba.com>
@jialez0
jialez0 force-pushed the agent/snp-ear-appraisal branch from 20af991 to 82d4f9f Compare August 5, 2026 11:20
@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,您的请求已接收,请耐心等待结果。

@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。

@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,您的请求已接收,请耐心等待结果。

@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。

@jialez0
jialez0 marked this pull request as ready for review August 5, 2026 11:43
@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,您的请求已接收,请耐心等待结果。

@ostest-bot

Copy link
Copy Markdown

@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。

@jialez0
jialez0 merged commit fa77097 into openanolis:main Aug 5, 2026
11 checks passed
@jialez0
jialez0 deleted the agent/snp-ear-appraisal branch August 11, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants