gcp_secret_manager 0.1.0 gcp_secret_manager: ^0.1.0 copied to clipboard
A small package to make interacting with Google Secret Manager easier.
secret_manager #
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...