Crates.io | hashicorp_vault |
lib.rs | hashicorp_vault |
version | 2.1.1 |
source | src |
created_at | 2016-02-15 21:24:26.148407 |
updated_at | 2022-11-15 19:15:02.546252 |
description | HashiCorp Vault API client for Rust |
homepage | |
repository | https://github.com/chrismacnaughton/vault-rs |
max_upload_size | |
id | 4187 |
size | 119,529 |
HashiCorp Vault API client for Rust.
You can start a local test server running using:
vault server -dev
vault version
Vault v1.12.0 (558abfa75702b5dab4c98e86b802fb9aef43b0eb), built 2022-10-10T18:14:33Z
Record the Root Token:
printed at startup time, and use it to create a
test token:
export VAULT_ADDR=http://localhost:8200
export VAULT_TOKEN=<root token from server startup>
vault token create -id="test12345" -ttl="720h"
vault secrets enable transit
To use this with a highly available vault, you need to either let consul handle DNS for this crate or handle identifying the Vault leader separately.