A script for editing Google Secret Manager Secrets in a manner consistent with our intended External Secrets usage
The naming pattern is: {env}-gke-{secret}-secrets
secret
defaults toapp
$ python gsm.py list -p moz-fx-testapp1-nonprod -e stage
$ python gsm.py names -p moz-fx-testapp1-nonprod -e stage
$ python gsm.py view -p moz-fx-testapp1-nonprod -e stage
$ python gsm.py view -p moz-fx-testapp1-nonprod -e stage -s cronjob-sync-something
creates a new secret if one does not already exist
$ python gsm.py edit -p moz-fx-testapp1-nonprod -e stage