magic-modules
magic-modules copied to clipboard
Move external_protection_level_options outside of attestation.
This field had been nested within the attestation field by accident. See https://github.com/hashicorp/terraform-provider-google/issues/15004 for more information about this change..
NOTE: while this will technically be a breaking change, it really does not break any CUJs because the current state of things does not allow for successful key creation (malformed requests would be rejected by the server). The terraform team has suggested to add the new field first, along with the deprecation message for the nested field, and remove the old deprecated field in the next release.
Release Note Template for Downstream PRs (will be copied)
Hello! I am a robot. It looks like you are a: ~Community Contributor~ Googler ~Core Contributor~. Tests will run automatically.
@trodge, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.
You can help make sure that review is quick by doing a self-review and by running impacted tests locally.
Hi there, I'm the Modular magician. I've detected the following information about your changes:
Breaking Change(s) Detected
The following breaking change(s) were detected within your pull request.
- Field
attestation.cert_chains.cavium_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains.google_card_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains.google_partition_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains
MinItems went from 0 to 0 ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.external_protection_level_options.ekm_connection_key_path
within resourcegoogle_kms_crypto_key_version
was either removed or renamed - reference - Field
attestation.external_protection_level_options.external_key_uri
within resourcegoogle_kms_crypto_key_version
was either removed or renamed - reference - Field
attestation.external_protection_level_options
within resourcegoogle_kms_crypto_key_version
was either removed or renamed - reference
If you believe this detection to be incorrect please raise the concern with your reviewer.
If you intend to make this change you will need to wait for a major release window.
An override-breaking-change
label can be added to allow merging.
Diff report
Your PR generated some diffs in downstreams - here they are.
Terraform GA: Diff ( 3 files changed, 165 insertions(+), 52 deletions(-)) Terraform Beta: Diff ( 3 files changed, 165 insertions(+), 52 deletions(-)) TF Conversion: Diff ( 1 file changed, 40 insertions(+))
Missing test report
Your PR includes resource fields which are not covered by any test.
Resource: google_kms_crypto_key_version
(18 total tests)
Please add an acceptance test which includes these fields. The test should include the following:
resource "google_kms_crypto_key_version" "primary" {
external_protection_level_options {
ekm_connection_key_path = # value needed
external_key_uri = # value needed
}
}
Tests analytics
Total tests: 30
Passed tests 26
Skipped tests: 3
Affected tests: 1
Click here to see the affected service packages
- kms
Action taken
Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
[Error message] [Debug log]
$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$ View the build log or the debug log for each test
Hi there, I'm the Modular magician. I've detected the following information about your changes:
Breaking Change(s) Detected
The following breaking change(s) were detected within your pull request.
- Field
attestation.cert_chains.cavium_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains.google_card_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains.google_partition_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains
MinItems went from 0 to 0 ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.external_protection_level_options.ekm_connection_key_path
within resourcegoogle_kms_crypto_key_version
was either removed or renamed - reference - Field
attestation.external_protection_level_options.external_key_uri
within resourcegoogle_kms_crypto_key_version
was either removed or renamed - reference - Field
attestation.external_protection_level_options
within resourcegoogle_kms_crypto_key_version
was either removed or renamed - reference
If you believe this detection to be incorrect please raise the concern with your reviewer.
If you intend to make this change you will need to wait for a major release window.
An override-breaking-change
label can be added to allow merging.
Diff report
Your PR generated some diffs in downstreams - here they are.
Terraform GA: Diff ( 3 files changed, 171 insertions(+), 52 deletions(-)) Terraform Beta: Diff ( 3 files changed, 171 insertions(+), 52 deletions(-)) TF Conversion: Diff ( 1 file changed, 40 insertions(+))
Missing test report
Your PR includes resource fields which are not covered by any test.
Resource: google_kms_crypto_key_version
(18 total tests)
Please add an acceptance test which includes these fields. The test should include the following:
resource "google_kms_crypto_key_version" "primary" {
external_protection_level_options {
ekm_connection_key_path = # value needed
}
}
Tests analytics
Total tests: 30
Passed tests 26
Skipped tests: 3
Affected tests: 1
Click here to see the affected service packages
- kms
Action taken
Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
[Error message] [Debug log]
$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$ View the build log or the debug log for each test
Hi there, I'm the Modular magician. I've detected the following information about your changes:
Breaking Change(s) Detected
The following breaking change(s) were detected within your pull request.
- Field
attestation.cert_chains.cavium_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains.google_card_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains.google_partition_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains
MinItems went from 0 to 0 ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.external_protection_level_options.ekm_connection_key_path
within resourcegoogle_kms_crypto_key_version
was either removed or renamed - reference - Field
attestation.external_protection_level_options.external_key_uri
within resourcegoogle_kms_crypto_key_version
was either removed or renamed - reference - Field
attestation.external_protection_level_options
within resourcegoogle_kms_crypto_key_version
was either removed or renamed - reference
If you believe this detection to be incorrect please raise the concern with your reviewer.
If you intend to make this change you will need to wait for a major release window.
An override-breaking-change
label can be added to allow merging.
Diff report
Your PR generated some diffs in downstreams - here they are.
Terraform GA: Diff ( 3 files changed, 172 insertions(+), 52 deletions(-)) Terraform Beta: Diff ( 3 files changed, 172 insertions(+), 52 deletions(-)) TF Conversion: Diff ( 1 file changed, 40 insertions(+))
Missing test report
Your PR includes resource fields which are not covered by any test.
Resource: google_kms_crypto_key_version
(18 total tests)
Please add an acceptance test which includes these fields. The test should include the following:
resource "google_kms_crypto_key_version" "primary" {
external_protection_level_options {
ekm_connection_key_path = # value needed
}
}
Tests analytics
Total tests: 30
Passed tests 26
Skipped tests: 3
Affected tests: 1
Click here to see the affected service packages
- kms
Action taken
Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
[Error message] [Debug log]
$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$ View the build log or the debug log for each test
Note to reviewer: following internal discussions, this PR will need to be reworked a bit. I will let you know when it's ready for review.
Reworked this PR, looking for /gcbrun
to see if the test works now, as well as an initial review!
/gcbrun
Hi there, I'm the Modular magician. I've detected the following information about your changes:
Breaking Change(s) Detected
The following breaking change(s) were detected within your pull request.
- Field
attestation.cert_chains.cavium_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains.google_card_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains.google_partition_certs
became Computed only ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains
MinItems went from 0 to 0 ongoogle_kms_crypto_key_version
- reference - Field
attestation.cert_chains
became Computed only ongoogle_kms_crypto_key_version
- reference
If you believe this detection to be incorrect please raise the concern with your reviewer.
If you intend to make this change you will need to wait for a major release window.
An override-breaking-change
label can be added to allow merging.
Diff report
Your PR generated some diffs in downstreams - here they are.
Terraform GA: Diff ( 3 files changed, 210 insertions(+), 27 deletions(-)) Terraform Beta: Diff ( 3 files changed, 210 insertions(+), 27 deletions(-)) TF Conversion: Diff ( 1 file changed, 40 insertions(+))
Missing test report
Your PR includes resource fields which are not covered by any test.
Resource: google_kms_crypto_key_version
(18 total tests)
Please add an acceptance test which includes these fields. The test should include the following:
resource "google_kms_crypto_key_version" "primary" {
external_protection_level_options {
ekm_connection_key_path = # value needed
}
}
Tests analytics
Total tests: 30
Passed tests: 26
Skipped tests: 3
Affected tests: 1
Click here to see the affected service packages
- kms
Action taken
Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
[Error message] [Debug log]
$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$ View the build log or the debug log for each test
Updated to undo remaining breaking changes, which will be done in a follow up PR. Looking for /gcbrun again
@trodge mind /gcbrun -ing again? Thanks!
/gcbrun
Hi there, I'm the Modular magician. I've detected the following information about your changes:
Diff report
Your PR generated some diffs in downstreams - here they are.
Terraform GA: Diff ( 3 files changed, 190 insertions(+), 1 deletion(-)) Terraform Beta: Diff ( 3 files changed, 190 insertions(+), 1 deletion(-)) TF Conversion: Diff ( 1 file changed, 40 insertions(+))
Missing test report
Your PR includes resource fields which are not covered by any test.
Resource: google_kms_crypto_key_version
(19 total tests)
Please add an acceptance test which includes these fields. The test should include the following:
resource "google_kms_crypto_key_version" "primary" {
external_protection_level_options {
ekm_connection_key_path = # value needed
}
}
Tests analytics
Total tests: 32
Passed tests: 28
Skipped tests: 3
Affected tests: 1
Click here to see the affected service packages
- kms
Action taken
Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
[Error message] [Debug log]
$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$ View the build log or the debug log for each test
@trodge You can assign me to this if you want, it's similar to another PR that I reviewed.
/gcbrun
Hi there, I'm the Modular magician. I've detected the following information about your changes:
Diff report
Your PR generated some diffs in downstreams - here they are.
Terraform GA: Diff ( 3 files changed, 190 insertions(+), 1 deletion(-)) Terraform Beta: Diff ( 3 files changed, 190 insertions(+), 1 deletion(-)) TF Conversion: Diff ( 1 file changed, 40 insertions(+))
Missing test report
Your PR includes resource fields which are not covered by any test.
Resource: google_kms_crypto_key_version
(19 total tests)
Please add an acceptance test which includes these fields. The test should include the following:
resource "google_kms_crypto_key_version" "primary" {
external_protection_level_options {
ekm_connection_key_path = # value needed
}
}
Tests analytics
Total tests: 32
Passed tests: 28
Skipped tests: 3
Affected tests: 1
Click here to see the affected service packages
- kms
Action taken
Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccKmsCryptoKeyVersion_externalProtectionLevelOptions
[Error message] [Debug log]
$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$ View the build log or the debug log for each test
@c2thorn Added release notes, tests for the field that is now supported (it required EkmConnection support, which has since been merged), as well as update tests.
@rishamchokshi can you also take a look? I've updated the stored secret used for the key uri because I think the key path was wrong. Thanks!
/gcbrun
tweaked the release notes