hc-vault
A rust library to interact with hashicorp vault
Example
Obtaining a new Session using approle-auth
let vault_url = "http://localhost:8200".to_string;
let role_id = "example-role-id".to_string;
let secret_id = "example-secret-id".to_string;
// Obtaining an Auth session, in this cause using approle
let approle_auth = match new ;
let config = Config ;
// Obtaining a valid vault-session,
// using the previously obtained Auth Session and config
let vault_client = match new.await ;
// Use vault_client for whatever you need to do