docs.rs failed to build env-secret-hydrator-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
env-secret-hydrator
Unified, provider-agnostic configuration and secret hydration for Rust.
Applications declare typed configuration once; this crate resolves values from environment variables, .env, cloud secret stores, Kubernetes/Docker secrets, and local defaults — without leaking origin details into application code.
Note: The short name
eshis already taken on crates.io. Publish and depend onenv-secret-hydrator.
Quick start
[]
= { = "0.1", = ["env", "memory-cache", "audit"] }
= { = "1", = ["derive"] }
= { = "1", = ["rt-multi-thread", "macros"] }
use ;
use Deserialize;
use Duration;
async
Feature matrix
| Feature | Enables |
|---|---|
env (default) |
Env + dotenv providers |
aws |
AWS Secrets Manager + SSM |
azure |
Azure Key Vault |
gcp |
Google Secret Manager |
vault |
HashiCorp Vault KV v2 |
k8s |
Kubernetes mounted secrets |
docker |
Docker /run/secrets |
memory-cache (default) |
In-memory TTL cache |
file-cache |
Opt-in file cache (warns: may persist secrets) |
redis-cache |
Redis TTL cache |
audit |
Tracing / stdout / memory auditors |
crypto / age |
KMS traits + Age decrypt |
yaml / toml |
Extra serde formats in core |
full |
All of the above except Redis |
Security invariants
SecretString/SecretBytesnever print plaintext inDisplay/Debug- Errors carry key names and provider IDs — never values
- File cache is off unless you enable
file-cache - Audit events are metadata-only
License
MIT OR Apache-2.0