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

Add KMS support for the google_bigquery_connection resource #10561

Merged
merged 7 commits into from
May 8, 2024

Conversation

daanheikens
Copy link
Contributor

Fixes: hashicorp/terraform-provider-google#17955

Release Note Template for Downstream PRs (will be copied)

compute:  added the 'kms_key_name` field to the 'google_bigquery_connection` resource

Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@ScottSuarez, 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.

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Apr 30, 2024
@modular-magician modular-magician added service/bigquery and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Apr 30, 2024
@modular-magician
Copy link
Collaborator

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.

google provider: Diff ( 3 files changed, 206 insertions(+))
google-beta provider: Diff ( 3 files changed, 206 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 162 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 16
Passed tests: 12
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • bigqueryconnection

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
TestAccBigqueryConnectionConnection_bigqueryConnectionKmsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccBigqueryConnectionConnection_bigqueryConnectionKmsExample[Debug log]

$\textcolor{red}{\textsf{Tests failed when rerunning REPLAYING mode:}}$
TestAccBigqueryConnectionConnection_bigqueryConnectionKmsExample[Error message] [Debug log]

Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made.

Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer.


$\textcolor{green}{\textsf{All tests passed!}}$
View the build log or the debug log for each test

@melinath melinath requested review from a team and melinath and removed request for ScottSuarez and a team April 30, 2024 22:08
@melinath
Copy link
Member

melinath commented May 2, 2024

Hi! I'm taking over this review from Scott.

@daanheikens
Copy link
Contributor Author

Hi! I'm taking over this review from Scott.

Hi! Thanks for the review, i will see too it.

bootstrap KMS
assign role via policyChanged override for service agent
@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels May 4, 2024
@modular-magician
Copy link
Collaborator

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.

google provider: Diff ( 3 files changed, 178 insertions(+))
google-beta provider: Diff ( 3 files changed, 178 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 147 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 16
Passed tests: 12
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • bigqueryconnection

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
TestAccBigqueryConnectionConnection_bigqueryConnectionKmsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccBigqueryConnectionConnection_bigqueryConnectionKmsExample[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$
View the build log or the debug log for each test

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the tests passed successfully! 🎉 Just a few small cleanups and it should be good to go.

database_instance_name: 'my-database-instance'
username: 'user'
deletion_protection: 'true'
kms_key_name: 'bq-key'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a full name since it's not a reference - projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked at the other example. Hope this works...

mmv1/products/bigqueryconnection/Connection.yaml Outdated Show resolved Hide resolved
daanheikens and others added 2 commits May 8, 2024 22:31
Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
@github-actions github-actions bot requested a review from melinath May 8, 2024 20:32
@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label May 8, 2024
@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label May 8, 2024
@modular-magician
Copy link
Collaborator

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.

google provider: Diff ( 3 files changed, 156 insertions(+))
google-beta provider: Diff ( 3 files changed, 156 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 138 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 16
Passed tests: 13
Skipped tests: 3
Affected tests: 0

Click here to see the affected service packages
  • bigqueryconnection
$\textcolor{green}{\textsf{All tests passed!}}$ View the [build log](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-10561/artifacts/f3c38885-0912-4b71-88af-402e9ab3165c/build-log/replaying_test.log)

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@melinath melinath merged commit 807e2f6 into GoogleCloudPlatform:main May 8, 2024
14 checks passed
kautikdk pushed a commit to kautikdk/magic-modules that referenced this pull request May 16, 2024
…oudPlatform#10561)

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
pawelJas pushed a commit to pawelJas/magic-modules that referenced this pull request May 16, 2024
…oudPlatform#10561)

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
pengq-google pushed a commit to pengq-google/magic-modules that referenced this pull request May 21, 2024
…oudPlatform#10561)

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
Cheriit pushed a commit to Cheriit/magic-modules that referenced this pull request Jun 4, 2024
…oudPlatform#10561)

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants