Skip to content

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

License

Notifications You must be signed in to change notification settings

mozilla-it/gsm-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages