-
Notifications
You must be signed in to change notification settings - Fork 208
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
Support Intel TDX confidential computing machine configuration #1426
base: main
Are you sure you want to change the base?
Conversation
In a6e7d1a confidentialCompute was extended from Enabled/Disabled to supporting explicit AMD SEV and AMD SEV-SNP configuration. TDX is supported in c3 machine types in google cloud [0]. This patch allows the user to add such instances to their clusters by declaring confidentialCompute=IntelTrustedDomainExtensions. [0] https://cloud.google.com/confidential-computing/confidential-vm/docs/supported-configurations#all-confidential-vm-instances
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bgartzi The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @bgartzi. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-cluster-api-gcp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
/ok-to-test |
/hold |
@damdo @cpanato There's one gap on this PR that I'm working on closing. Contrary to #1427, there is not a backward compatibility issue in this case in my opinion. I will provide a fix soon if you all agree. Thanks for the review, BTW! |
@bgartzi you mean that at the moment with I think that's expected right? Because that was the old default behaviour for In my opinion it is fine for it to stay like that. So we don't dynamically change the confidential policy without the user noticing. |
@damdo, The way I understood it was that cluster-api-provider-gcp/api/v1beta1/gcpmachine_types.go Lines 338 to 342 in be453fe
However, google only supported SEV machines when the field was introduced in #809 (see google.golang.org/api@v108). That's, I would say, why nowadays it defaults to SEV machines if just "Enabled" is configured. Enabling It is an issue to do this for SEV-SNP as commented in #1427, because SEV-SNP machines implicitly support SEV in google cloud. I would expect this to also be an issue if some machines could support both SEV and TDX at the same time. Being AMD and Intel CPU's technologies respectively, I'm not sure if that is likely to happen. A parallel example: I was personally confused when directly using google's compute API and being able to provision TDX machines by combinations such as Regarding current users of |
In the future, we will likely bump this API to a new version. If we were to mark the This would then create a confidential compute field where there is no "enabled" assumption, and users have to be explicit about the supported type of confidential computing, which makes sense to me. |
/kind feature
What this PR does / why we need it:
In #1410
confidentialCompute
was extended fromEnabled
/Disabled
to also supporting explicit AMD SEV and AMD SEV-SNP instance configuration.TDX is supported in c3 machine types in google cloud [0].
This patch allows users to configure those machines as confidential instances by declaring
confidentialCompute: IntelTrustedDomainExtensions
.[0] https://cloud.google.com/confidential-computing/confidential-vm/docs/supported-configurations#all-confidential-vm-instances
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1425
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
Release note: