gcp_secret_provider v0.1.2 GcpSecretProvider View Source

This is a config provider which fetches secrets from Google's Secret Manager API when the app starts. This can be useful for pulling in secrets without having to redeploy if you cycle them for example.

We use goth to authorize us to make requests to the API meaning you have to provide this library with a service account that has a Secret Manager Secret Accessor role.

Link to this section Summary

Functions

Callback implementation for Config.Provider.init/1.

Called automatically, queries google secret manager for secrets and puts them in config

Link to this section Functions

Callback implementation for Config.Provider.init/1.

Link to this function

insert_secrets(config, project)

View Source

Called automatically, queries google secret manager for secrets and puts them in config