secret_manager 1.1.0 copy "secret_manager: ^1.1.0" to clipboard
secret_manager: ^1.1.0 copied to clipboard

Access your secrets no matter where they're stored.

Secret Manager #

secret_manager coverage pub package style: very good analysis License: MIT

Access your secrets no matter where they're stored. Built in support for reading secrets from:

  • Environment variables
  • A local File

If you'd like to read from GCP Secret Manager, you can use gcp_secret_manager.

Environment Variables #

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

Local File #

Just make sure you don't check your secrets file into version control!

  final secretManager = await LocalSecretManager.fromFile();
  final secret = secretManager.getSecret('my-secret');
  // use secret...
0
likes
150
points
319
downloads

Publisher

unverified uploader

Weekly Downloads

Access your secrets no matter where they're stored.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

platform

More

Packages that depend on secret_manager