-
Notifications
You must be signed in to change notification settings - Fork 3
attested-get: add support for dcap-tdx, and use auto detection mode by default
#45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
57c0fcb to
8f9b092
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR extends the attested-get command-line tool to support DCAP TDX attestation in addition to the existing Azure TDX attestation support.
Key Changes:
- Added DCAP TDX as a supported attestation type alongside Azure TDX
- Implemented DCAP TDX validator configuration for the client
- Updated measurement extraction to recognize both Azure TDX and QEMU TDX OIDs
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dcap-tdx, and use auto detection mode by default
dcap-tdx, and use auto detection mode by defaultattested-get: add support for dcap-tdx, and use auto detection mode by default
MoeMahhouk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
I left some nit suggestion and a question
| attConfig := config.DefaultForAzureTDX() | ||
| attConfig.SetMeasurements(measurements.M{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would this also work as you did below for QEMUTDX? something like config.AzureTDX{Measurements: measurements.M{}}
| case proxy.AttestationAuto: | ||
| // In auto mode, add all validators to support any attestation type | ||
| log.Info("Auto mode: creating validators for all supported attestation types") | ||
| validators = append(validators, createAzureTDXValidator(log, overrideAzurev6Tcbinfo)) | ||
| validators = append(validators, createDCAPTDXValidator(log)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would this mean that it would try to verify with all validators and see which ones passes?
Would it errors if any of the validators returns an error? or would it just continue with the next one until one passes?
Just checking in case it would result in the same error one would encounter when it is not validating for the correct platform
No description provided.