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 #2013

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 <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner March 4, 2024 22:58
@modular-magician modular-magician requested review from shuyama1 and removed request for a team March 4, 2024 22:58
@modular-magician modular-magician merged commit 3723133 into GoogleCloudPlatform:main Mar 4, 2024
3 checks passed
@modular-magician modular-magician deleted the downstream-pr-216fffd274b08af2e3f718d3d8aeb8cb6410b420 branch November 18, 2024 07:34
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.

Error reading CryptoKeyVersion - provider defined wrong type vs GCP API response
1 participant