Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.08 KB

gsm-editor

A script for editing Google Secret Manager Secrets in a manner consistent with our intended External Secrets usage

Secret Names

The naming pattern is: {env}-gke-{secret}-secrets

  • secret defaults to app

Examples

list revisions of moz-fx-testapp1-nonprod's app secrets for the stage env:

$ python gsm.py list -p moz-fx-testapp1-nonprod -e stage

list all secret names in moz-fx-test-app1-nonprod for the stage env:

$ python gsm.py names -p moz-fx-testapp1-nonprod -e stage

view latest revision of moz-fx-testapp1-nonprod's app secrets for the stage env:

$ python gsm.py view -p moz-fx-testapp1-nonprod -e stage

view latest revision of moz-fx-testapp1-nonprod's cronjob-sync-something secrets for the stage env:

$ python gsm.py view -p moz-fx-testapp1-nonprod -e stage -s cronjob-sync-something

edit latest revision of moz-fx-testapp1-nonprod's app secrets for the stage env:

creates a new secret if one does not already exist

$ python gsm.py edit -p moz-fx-testapp1-nonprod -e stage