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

Support CMEK encryption in logging-bucket module #1386

Merged
merged 1 commit into from
May 22, 2023

Conversation

afda16
Copy link
Collaborator

@afda16 afda16 commented May 22, 2023

We have a use case, Local Controls, that requires to configure CMEK with Logging buckets. This commit adds an optional variable to configure CMEK in the logging-bucket module. By default the Logging bucket won't use CMEK encryption.

To configure CMEK for Logging buckets it's also required to add the correct permissions to the bucket service account. For more information and a Terraform example, see:

https://cloud.google.com/logging/docs/routing/managed-encryption-storage

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/logging_project_bucket_config#example-usage

@afda16 afda16 requested a review from ludoo May 22, 2023 13:18
@afda16 afda16 force-pushed the afda16/logging-bucket-cmek branch 2 times, most recently from 7cb3d7b to 3e593fe Compare May 22, 2023 13:22
@afda16 afda16 force-pushed the afda16/logging-bucket-cmek branch from 3e593fe to 981c69a Compare May 22, 2023 13:47
We have a use case, Local Controls, that requires to configure
CMEK with Logging buckets. This commit adds an optional variable to
configure CMEK in the `logging-bucket` module. By default the Logging
bucket won't use CMEK encryption.

To configure CMEK for Logging buckets it's also required to add the
correct permissions to the bucket service account. For more information
and a Terraform example, see:

https://cloud.google.com/logging/docs/routing/managed-encryption-storage

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/logging_project_bucket_config#example-usage
@afda16 afda16 force-pushed the afda16/logging-bucket-cmek branch from 981c69a to a5bbd09 Compare May 22, 2023 14:12
@afda16 afda16 merged commit 8254303 into master May 22, 2023
@afda16 afda16 deleted the afda16/logging-bucket-cmek branch May 22, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants