Add quote generation / verification #10
Merged
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.
This provides logic for generating and verifying DCAP TDX quotes.
Quote verification is done using
dcap-qvlfrom Kevin Wang / Phala.I am currently trying to get the quote parser from this logic to accept mock quotes from
tdx-quoteso that we can test the some of the quote verification logic on non-TDX hardware. Ideally i would like to test the measurement and report input checking logic but ignore PCK certificate chain verification.Currently these mock quotes will not parse with
dcap-qvl::quote::Quote::parse- which is likely an error in the mock quote generation.There are some open design questions around the PCCS - whether to do internal PCS caching (per instance of this service) or use some external PCCS.
I plan to add some GCP-specific logic - checking launch endorsements for the MRTD values from GCP, using
tdx_workload_attestationThese responses can be cached similarly to the PCS collateral (either internally or using some external caching service).There are some other open design questions:
az-tdx-vtpmfor quote generation andazure_svc_attestationtogether with a JWT library for verification