Skip to content
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

ear: add TDX sample policy checks #667

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

mythi
Copy link
Contributor

@mythi mythi commented Jan 17, 2025

Something I drafted together with @jorgealmansa.

Populate the default EAR policy with an initial TDX policy configuration.

@mythi mythi requested a review from a team as a code owner January 17, 2025 12:23
Populate the default EAR policy with an initial TDX
policy configuration.

Co-developed-by: Jorge Almansa <[email protected]>
Signed-off-by: Mikko Ylinen <[email protected]>
Copy link
Member

@fitzthum fitzthum left a comment

Choose a reason for hiding this comment

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

Awesome. I don't know enough about TDX to really confirm this but it looks like a big step forward.

@mythi
Copy link
Contributor Author

mythi commented Jan 20, 2025

thanks. This should be enough to get started. I need to make a few adjustments once I get tdx-verifier improved a bit.

Copy link
Member

@Xynnn007 Xynnn007 left a comment

Choose a reason for hiding this comment

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

LGTM. Looks like one important thing is to ensure the boot chain for tdx guest. If we use td-shim, we will have tdx.ccel.kernel in parsed claims. I am not sure what ovmf from ubuntu upstream will generate, needs a try.

# Check TDX Module version and its hash. Also check OVMF code hash.
input.tdx.quote.body.mr_seam in data.reference.mr_seam
input.tdx.quote.body.tcb_svn in data.reference.tcb_svn
input.tdx.quote.body.mr_td in data.reference.mr_td
Copy link
Member

Choose a reason for hiding this comment

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

Following https://github.com/confidential-containers/trustee/blob/main/attestation-service/docs/parsed_claims.md#intel-tdx, seems that we can also add
tdx.quote.body.mrsigner_seam also?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I left that out on purpose for now since that's all zeros for Intel's TDX Module. Do you think it would be good to add a check for zero here?

Copy link
Member

Choose a reason for hiding this comment

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

As a sample policy, it is ok imo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK as it is now?

@mythi
Copy link
Contributor Author

mythi commented Jan 20, 2025

I am not sure what ovmf from ubuntu upstream will generate, needs a try.

it does not work and that is one thing on my list two fix

@Xynnn007 Xynnn007 merged commit cea6751 into confidential-containers:main Jan 21, 2025
30 checks passed
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