@varlock/google-secret-manager-plugin
v0.0.2
Published
Varlock plugin to pull data from Google Cloud Secret Manager
Readme
@varlock/google-secret-manager-plugin
This package is a Varlock plugin that enables loading secrets from Google Cloud Secret Manager into your configuration.
See our docs site for complete installation and usage instructions.
# Example .env.schema using the Google Secret Manager plugin
#
# @plugin(@varlock/google-secret-manager-plugin)
#
# use Application Default Credentials
# @initGsm(projectId=my-project)
#
# or initialize the plugin with service account credentials
# @initGsm(projectId=my-gcp-project, credentials=$GCP_SA_KEY)
# ---
# Service account JSON key (optional)
# @sensitive @type=gcpServiceAccountJson
GCP_SA_KEY=
# pull secrets from Google Secret Manager using the `gsm()` resolver
API_KEY=gsm("api-key")
DB_PASSWORD=gsm("database-password@5")