Skip to content

Conversation

@metachris
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a 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.

@metachris metachris changed the title attested-get dcap-tdx support attested-get: add support for dcap-tdx, and use auto detection mode by default Nov 12, 2025
@metachris metachris changed the title attested-get: add support for dcap-tdx, and use auto detection mode by default attested-get: add support for dcap-tdx, and use auto detection mode by default Nov 12, 2025
Copy link
Member

@MoeMahhouk MoeMahhouk left a 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

Comment on lines +112 to +113
attConfig := config.DefaultForAzureTDX()
attConfig.SetMeasurements(measurements.M{})
Copy link
Member

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{}}

Comment on lines +162 to +166
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))
Copy link
Member

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

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.

3 participants