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

resource_storage_bucket_object: added support for Customer Supplied E… #4992

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

jaceq
Copy link
Contributor

@jaceq jaceq commented Jul 23, 2021

…ncryption Keys (CSEK)

As per title, added support for customer supplied encryption keys.

This resolves: hashicorp/terraform-provider-google#8133
This is a follow up (as per advice from @ScottSuarez ) of: #4950

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

added support for Customer Supplied Encryption Key (CSEK)

@google-cla google-cla bot added the cla: yes label Jul 23, 2021
@modular-magician
Copy link
Collaborator

Oops! It looks like you're using an unknown release-note type in your changelog entries:

  • enhancement added support for Customer Supplied Encryption Key (CSEK)

Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md.

@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review.

Thanks for your contribution! A human will be with you soon.

@slevenick, please review this PR or find an appropriate assignee.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 108 insertions(+), 13 deletions(-))
Terraform Beta: Diff ( 2 files changed, 108 insertions(+), 13 deletions(-))

@slevenick slevenick requested review from ScottSuarez and removed request for slevenick July 27, 2021 21:25
@slevenick
Copy link
Contributor

@ScottSuarez I think you have context on this, can you take a look?

Copy link
Contributor

@ScottSuarez ScottSuarez left a comment

Choose a reason for hiding this comment

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

Whenever you submit your changes are are ready for another review hit the little re-request review button next to my name. ^^

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 141 insertions(+), 13 deletions(-))
Terraform Beta: Diff ( 2 files changed, 141 insertions(+), 13 deletions(-))

1 similar comment
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 141 insertions(+), 13 deletions(-))
Terraform Beta: Diff ( 2 files changed, 141 insertions(+), 13 deletions(-))

@jaceq jaceq requested a review from ScottSuarez July 28, 2021 13:33
Copy link
Contributor

@ScottSuarez ScottSuarez left a comment

Choose a reason for hiding this comment

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

Last bit of asks ! Thanks for your help :)

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 135 insertions(+), 1 deletion(-))
Terraform Beta: Diff ( 2 files changed, 135 insertions(+), 1 deletion(-))

@jaceq jaceq requested a review from ScottSuarez July 29, 2021 08:28
@ScottSuarez
Copy link
Contributor

/gcbrun

@ScottSuarez
Copy link
Contributor

oh! one more thing, sorry, could you add this field to the documentation for this resource?

https://github.com/GoogleCloudPlatform/magic-modules/blob/master/mmv1/third_party/terraform/website/docs/r/storage_bucket_object.html.markdown

To see how we usually document nested fields check here.
https://github.com/hashicorp/terraform-provider-google/blob/master/website/docs/r/compute_instance.html.markdown

after this these changes should be good to go pending tests pass!

Thanks so much for your help :)

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 135 insertions(+), 1 deletion(-))
Terraform Beta: Diff ( 2 files changed, 135 insertions(+), 1 deletion(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 146 insertions(+), 1 deletion(-))
Terraform Beta: Diff ( 3 files changed, 146 insertions(+), 1 deletion(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 146 insertions(+), 1 deletion(-))
Terraform Beta: Diff ( 5 files changed, 149 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 146 insertions(+), 1 deletion(-))
Terraform Beta: Diff ( 4 files changed, 147 insertions(+), 2 deletions(-))

@jaceq
Copy link
Contributor Author

jaceq commented Jul 30, 2021

@ScottSuarez I've added documentation entries as requested.

@ScottSuarez
Copy link
Contributor

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 146 insertions(+), 1 deletion(-))
Terraform Beta: Diff ( 4 files changed, 147 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccCloudbuildWorkerPool_basic|TestAccDataLossPreventionDeidentifyTemplate_dlpDeidentifyTemplateBasicExample|TestAccStorageObject_customerEncryption You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=199300

@modular-magician
Copy link
Collaborator

Tests failed during RECORDING mode: TestAccDataLossPreventionDeidentifyTemplate_dlpDeidentifyTemplateBasicExample|TestAccCloudbuildWorkerPool_basic Please fix these to complete your PR

@ScottSuarez
Copy link
Contributor

test passed ! this is good to go !

Checked in ~. should release next Monday :]

@ScottSuarez ScottSuarez merged commit 4826329 into GoogleCloudPlatform:master Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

google_storage_bucket_object add ability to use Customer Supplied Encryption Keys
4 participants