-
Notifications
You must be signed in to change notification settings - Fork 827
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
Use gcloud secrets instead of git-crypt for groups #821
Use gcloud secrets instead of git-crypt for groups #821
Conversation
I have already run the reconciler so that everyone else should have access to the secret necessary to run the reconciler
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: spiffxp 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 |
Awesome. Code looks good. |
@spiffxp lgtm, the only thing we can also do is to remove the first line from the /lgtm |
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.
I like this. Tested locally
else | ||
color 6 "Empowering ${GSUITE_GROUP_ADMINS} to access the ${GSUITE_SVCACCT}_key secret" | ||
gcloud --project="${PROJECT}" \ | ||
secrets add-iam-policy-binding "${GSUITE_SVCACCT}_key" \ |
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.
Instead of add, should this be a "set"?
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 a fair point. We haven't used set-iam-policy in these scripts yet. I'd like to do this as a followup as I have some groups reconciliation to do for some other PRs
/hold cancel |
LGTM |
tl;dr
make -C groups run
no longer depends ongit-crypt
This modifies
groups/reconciler.go
to use the secret manager API to access its service account key instead of a file, and removes the service account key from this repo.There is a new group
k8s-infra-group-admins@kubernetes.io
that has access to the secret. To bootstrap us I created the secret, ran the reconciler, and ran theensure-gsuite.sh
script.Since we're now using the secretmanager API, this adds support for it to our audit scripts
ref: #813