-
Notifications
You must be signed in to change notification settings - Fork 158
Project setup script authorizes GCE to use Cloud KMS keys on the dev project. #590
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
Conversation
Hi @jeremyje. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign mattcary |
/lgtm |
# Authorize GCE to encrypt/decrypt using Cloud KMS encryption keys. | ||
# https://cloud.google.com/compute/docs/disks/customer-managed-encryption#before_you_begin | ||
gcloud projects add-iam-policy-binding "${PROJECT}" --member serviceAccount:"service-${PROJECT_NUMBER}@compute-system.iam.gserviceaccount.com" --role "roles/cloudkms.cryptoKeyEncrypterDecrypter" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this script is for user to set up their cluster, if they do not use cmek feature, this part is not needed.
Is it better to give an option? If user enable this option, then set it up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not a bad point. My thought was that it's better to have this stuff on by default as, eg for testing it makes everything more consistent.
But maybe we don't want to add policy bindings by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a parameter called ENABLE_KMS
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
I think it's good to have to explicitly specify KMS, that's better than having a default that won't be noticed until it's too late.
Is there anything remaining in order to get approval? |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jeremyje, mattcary The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…project.
What type of PR is this?
/kind feature
What this PR does / why we need it:
The project setup script will now run
gcloud projects add-iam-policy-binding "${PROJECT}" --member serviceAccount:"service-${PROJECT_NUMBER}@compute-system.iam.gserviceaccount.com" --role "roles/cloudkms.cryptoKeyEncrypterDecrypter"
.This is important because it authorizes GCE to use Cloud KMS encryption keys. Without this grant usage to Cloud KMS will be blocked and tests will fail with,
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: