@nx-extend/gcp-secrets
v11.1.1
Published
<a href="https://www.npmjs.com/package/@nx-extend/gcp-secrets" rel="nofollow"> <img src="https://badgen.net/npm/v/@nx-extend/gcp-secrets" alt="@nx-extend/gcp-secrets NPM package"> </a>
Downloads
219
Readme
@nx-extend/gcp-secrets
Nx plugin for deploy your secrets Secret Manager.
Setup
Install
npm install -D @nx-extend/gcp-secrets
nx g @nx-extend/gcp-secrets:init
Usage
Add an environment variable named GCP_SECRETS_ENCRYPTION_KEY
that holds your key to encrypt and decrypt your secrets.
Decrypt
Available options:
| name | type | default | description |
|----------------|----------|---------|----------------------------------------|
| --secret
| string
| | Only decrypt the secret with this name |
Deploy
Available options:
| name | type | default | description |
|-----------------|----------|---------|----------------------------------------|
| --project
| string
| | GCP project to deploy to |
| --secret
| string
| | Only decrypt the secret with this name |
Encrypt
Available options:
| name | type | default | description |
|----------------|----------|---------|----------------------------------------|
| --secret
| string
| | Only decrypt the secret with this name |
Meta data explained
| Attribute | default | description |
|------------------|-----------|-------------------------------------------------------------|
| status | | Status of the file, encrypted
or decrypted
|
| labels | []
| Array of labels to add to the secrets |
| onUpdateBehavior | destroy
| What to do when updating, destory
, delete
, or disable
|