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

Fetch secret keys by name from Firebase Cloud Functions backed by Google Secret Manager. No secrets ever ship in your app binary, repo, or .env.

Changelog #

All notable changes to this project are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.1.0 #

Added #

  • SecureKeyManager.initialize now accepts an optional firebaseOptions argument. When provided, the manager calls Firebase.initializeApp for you — no FlutterFire CLI, firebase_options.dart, google-services.json, or GoogleService-Info.plist required. Pass the config from the Firebase Console inline instead.
  • Re-exported FirebaseOptions from firebase_core, so apps only need to import package:secure_key_manager/secure_key_manager.dart.

1.0.0 #

Initial release.

Added #

  • SecureKeyManager.initialize({region, cacheTtl}) — one-time setup with anonymous Firebase Auth sign-in and configurable Cloud Functions region.
  • SecureKeyManager.get(keyName) — cache-first fetch of a secret value from the getSecretKey Cloud Function.
  • SecureKeyManager.clearCache() — drop all cached keys (e.g. on logout).
  • SecureKeyManager.evict(keyName) — drop a single key to force a re-fetch.
  • In-memory TTL cache (default 30 minutes); no values are persisted to disk.
  • getSecretKey Cloud Function with auth enforcement and a server-side ALLOWED_KEYS whitelist.
  • Runnable example app and full Firebase setup guide.
0
likes
150
points
13
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Fetch secret keys by name from Firebase Cloud Functions backed by Google Secret Manager. No secrets ever ship in your app binary, repo, or .env.

Topics

#firebase #secrets #security #secret-manager #cloud-functions

License

MIT (license)

Dependencies

cloud_functions, firebase_auth, firebase_core, flutter

More

Packages that depend on secure_key_manager