secret_manager

gcp_secret_manager style: very good analysis License: MIT

A small package to make interacting with Google Secret Manager easier.

Usage

  final secretManager = await SecretManager.defaultCredentials();
  final secret = await secretManager.getSecret('my-secret');
  // use secret...

Local Usage

You can use LocalSecretManager to read secrets from a file for use locally. Just make sure you don't check your secrets file into GitHub!

  final secretManager = await LocalSecretManager.fromFile();
  final secret = await secretManager.getSecret('my-secret');
  // use secret...

Libraries

gcp_secret_manager