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

fix(kms): certificate chain type to array of strings #7045

Conversation

modular-magician
Copy link
Collaborator

The response type for KeyOperationAttestation CertificateChains is an array of strings. This is also what documentation says. https://cloud.google.com/kms/docs/reference/rest/v1/KeyOperationAttestation#certificatechains

However the provider spec for that property lists them as strings, so terraform will panic whenever a key version is created with HSM that uses these certificates as the types are mismatched. This PR fixes this so the type is an array of strings, as well as adding an AccTest for HSM key version

Fixes hashicorp/terraform-provider-google#13924

Release Note Template for Downstream PRs (will be copied)

kms: fixed issue where `google_kms_crypto_key_version.attestation.cert_chains` properties were incorrectly set to type string

Derived from GoogleCloudPlatform/magic-modules#9582

[upstream:216fffd274b08af2e3f718d3d8aeb8cb6410b420]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit eb392a2 into hashicorp:main Mar 4, 2024
4 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
1 participant