Vaultier /slɒθ/ :sloth:
Small crate to read secrets from Hashicorp Vault. Based on vaultrs.
Usage
use SecretClient;
use Deserialize;
let address = "<vault instance address>";
let mount = Stringfrom;
let base_path = Stringfrom;
// With token or default feature enabled
let client = new.unwrap;
// With auth feature enabled
let auth_mount = "<mount to vault auth>";
let role = "<your role>";
let client = create.unwrap;
// read secrets from that base path
let secrets = client..await.unwrap;
// read secrets from the passed path relative to the base path: mount/data/base_path/my-secrets
let secrets = client..await.unwrap;