19 releases (6 stable)

2.1.1 Nov 15, 2022
2.1.0 Apr 5, 2021
2.0.1 Feb 12, 2021
1.1.0 Aug 12, 2020
0.3.6 Mar 4, 2016

#1 in #ttl

Download history 412/week @ 2023-12-12 450/week @ 2023-12-19 316/week @ 2023-12-26 186/week @ 2024-01-02 412/week @ 2024-01-09 492/week @ 2024-01-16 435/week @ 2024-01-23 430/week @ 2024-01-30 703/week @ 2024-02-06 384/week @ 2024-02-13 1250/week @ 2024-02-20 1727/week @ 2024-02-27 809/week @ 2024-03-05 1043/week @ 2024-03-12 621/week @ 2024-03-19 467/week @ 2024-03-26

3,216 downloads per month
Used in 3 crates

MIT license

76KB
1.5K SLoC

Vault

Build Status

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

High Availability

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.

TODO

  • Add support for managing Vault

lib.rs:

Client API for interacting with Vault

Dependencies

~5–19MB
~273K SLoC