Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.93 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.93 KB

@nx-extend/gcp-secrets

@nx-extend/gcp-secrets NPM package

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