gsm-controller
gsm-controller copied to clipboard
Support secrets from a different GCP project
This would be very handy in a collaborative setting, imagine the scenario of:
- cluster
cA
lives in projectpA
contains lots of secrets from different teams - the maintainer of cluster
cA
doesn't want subteam to have write access on secrets in projectpA
for security reason - team
B
owns projectpB
but notpA
, and doesn't mind for clustercA
to have read access on secrets in projectpB
If gsm supports a different project, the workflow can become:
- team
B
grant projectpB
secret read access to the service account from projectpA
- team
B
creates secretprecious
inpB
- team
B
creates a PullRequest to the repo that contains config of clustercA
, with an empty secret says this is a secretprecious
from projectpB
- cluster
cA
then can pullprecious
frompB
and fill it in
@rawlingsj , if this repo is open to collaboration I won't mind contribute
Absolutely! All contributions welcome :)
Fwiw it might be worth looking at https://github.com/external-secrets/kubernetes-external-secrets if you need to work with multiple secret managers which Jenkins X does so we default to that. Having said that this controller is totally fine if you prefer. Just wanted to mention both incase you'd not seen the other project.
Fwiw it might be worth looking at https://github.com/external-secrets/kubernetes-external-secrets if you need to work with multiple secret managers which Jenkins X does so we default to that. Having said that this controller is totally fine if you prefer. Just wanted to mention both incase you'd not seen the other project.
Actually I was also just checking here :) https://github.com/external-secrets/kubernetes-external-secrets#gcp-secret-manager
And I believe it solves both problems I would like gsm to solve, will take a look there. Thank you for your prompt response btw