Skip to content

Remove QemuTdx attestation type#69

Merged
ameba23 merged 3 commits into
mainfrom
peg/rm-qemu-tdx-attestation-type
Jul 9, 2026
Merged

Remove QemuTdx attestation type#69
ameba23 merged 3 commits into
mainfrom
peg/rm-qemu-tdx-attestation-type

Conversation

@ameba23

@ameba23 ameba23 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

The AttestationType enum variants were ported over from cvm-reverse-proxy to maintain compatibility with JSON measurements format and HTTP header format.

There are two types which are effectively treated the same: DcapTdx and QemuTdx. Both assume DCAP attestation format and do not specify a particular cloud provider.

This creates ambiguity when converting to/from attest_types::AttestationType, which has an equivalent SelfHostedTdx type. Converting one to the other and then back behaves inconsistently.

Eventually we will probably adopt the type from attest_types. But until then this PR removes the QemuTdx variant, and interpretsqemu-tdx as DcapTdx if used in the measurements JSON data structure, to preserve backwards compatibility.

@ameba23 ameba23 requested a review from alexhulbert July 8, 2026 14:40

@alexhulbert alexhulbert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ameba23 ameba23 merged commit 504860a into main Jul 9, 2026
2 checks passed
@ameba23 ameba23 deleted the peg/rm-qemu-tdx-attestation-type branch July 9, 2026 15:20
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