View Source Hush.Provider.GcpSecretManager (hush_gcp_secret_manager v1.1.0)

Implements a Hush.Provider behaviour to resolve secrets from Google Secret Manager at runtime.

To configure this provider, use :hush and :hush_gcp_secret_manager.

The configuration supplied to :hush_gcp_secret_manager.goth is in the same format as you would configure goth, as per https://github.com/peburrows/goth

# config.exs

config :hush,
  providers: [Hush.Provider.GcpSecretManager]

config :hush_gcp_secret_manager,
  project_id: "my_project_id",
  goth: [name: MyApp.Goth, source: ...],
  goth_timeout: 5_000 # milliseconds