gcloud-secret-inject

1.0.1 • Public • Published

Inject gcloud secrets into config files. Works with any text file.

Usage

gcloud-secret-inject -i some.env.template -o some.env

Example Input File: some.env.template

host="sm://projects/xxxx/secrets/SomeSecret"
ingestionToken="sm://projects/xxxx/secrets/SomeOtherSecret"

Output File: some.env

host="https://google.com"
ingestionToken="ABCDEG"

Note: quotes are unnecessary. The example file works without quotes.

Thanks

Inspired by op inject by 1Password.

Readme

Keywords

none

Package Sidebar

Install

npm i gcloud-secret-inject

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.39 kB

Total Files

3

Last publish

Collaborators

  • quincycs