Skip to main content
Version: 5.x

GCP Secret Manager Provider

The gcp-secret-manager provider uses Google Cloud Secret Manager. Each Redwood secret reference (secret|my_secret) reads the latest version of the secret with that name in your project.

Configuration​

VariableDefault ValueDescription
secrets.providernoneSet to gcp-secret-manager to use this provider
secrets.gcp-secret-manager.project-idyour-project-idThe Google Cloud project ID for your Secret Manager instance.
secrets.gcp-secret-manager.credentials-filegcp-credentials.jsonThe path (relative to the RedwoodBackend folder) to a service account JSON key file that Google Cloud generates for you.

If the GOOGLE_APPLICATION_CREDENTIALS environment variable is already set, it takes precedence over credentials-file.

When you deploy to Kubernetes, the credentials file is mounted in the backend pods for you.