Skip to content

Gets values from Google Secret manager, injects into ENV and executes a binary

Notifications You must be signed in to change notification settings

wmcg/google-secret-env-shim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

go build -o gses .

should be built statically

Use

  • dont forget the full path to the binary
# passing as flags
$ ./gses --secret-name pathtoajsonobjectofsecretenvs --project my-lovely-project -- /usr/bin/env
# passing as env vars:
$ export SECRET_NAME=pathtoajsonobjectofsecretenvs
$ export PROJECT=my-lovely-project
$ ./gses -- /usr/bin/env

short flags are supported:

$ ./gses -n pathtoajsonobjectofsecretenvs -p my-lovely-project -- /usr/bin/env
...

verbose prints the ENV VARS (use with caution)

$ ./gses -v -n pathtoajsonobjectofsecretenvs -p my-lovely-project -- /usr/bin/env
## Found 2 ENV VARs in the secret:
## GREETING=hello
## NAME=bob
...

About

Gets values from Google Secret manager, injects into ENV and executes a binary

Resources

Stars

Watchers

Forks

Packages

No packages published