-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_attestation_provider
- add AzureVM and SEV-SNP attestation types
#22229
Conversation
azurerm_attestation_provider
- add AzureVM and SEV-SNP attestation types
Thanks for this PR @msanft. As you've already identified, we cannot accept changes to vendored files and an upstream change would need to happen before this could be merged. The SDK used here is generated from the Azure REST API spec published in this repo. Unfortunately the latest dataplane version for attestation is still missing this value so you will need to raise an issue over on that repo to have it added to the spec before we can regenerate the SDK and propagate those changes into the provider to expose this value. Since this isn't something we can currently support I'm going to close this issue for the time being, but once this value has been added to the spec we can look into reopening this and adding it. Thanks! |
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.
Apologies just saw that one of the enums is available - if you can remove the one that isn't available in the SDK from this PR then we can take look over this and get it merged
I'll edit that so we can have that merged. Thanks a lot! For the |
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.
Thanks @msanft.
The change made to the vendored SDK needs to be reverted. We also have a test failure
------- Stdout: -------
=== RUN TestAccAttestationProvider_withPolicy
=== PAUSE TestAccAttestationProvider_withPolicy
=== CONT TestAccAttestationProvider_withPolicy
testcase.go:113: Step 1/2 error: Error running apply: exit status 1
Error: updating value for `tpm_policy_base64`: attestation.PolicyClient#Set: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="Bad request" Message="Tpm attestation is not supported in the 'UKSouth' region."
with azurerm_attestation_provider.test,
on terraform_plugin_test.tf line 24, in resource "azurerm_attestation_provider" "test":
24: resource "azurerm_attestation_provider" "test" {
--- FAIL: TestAccAttestationProvider_withPolicy (514.40s)
FAIL
vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/enums.go
Outdated
Show resolved
Hide resolved
Hey @stephybun , re the failed test; Unfortunately, I cannot replicate the failure locally. Judging from the error message, I think we could either switch the region used to e.g. |
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.
I hope you don't mind I pushed the change to the location for the tests as well as formatted the test config to fix the CI - this now looks good to go. Thanks @msanft LGTM 💯
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Context
AzureVM
(Trusted launch) andSEV-SNP
attestation types.Proposed Changes
sev_snp_policy_base64
andazure_vm_policy_base64
fields to theazurerm_attestation_provider
resource.enums.go
file in the SDK manually to test the changes. I assume I would need to get a PR to the SDK upstreamed to get these changes in?Related Issue