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

#587 in Web programming

Download history 1267/week @ 2024-03-13 396/week @ 2024-03-20 765/week @ 2024-03-27 1187/week @ 2024-04-03 566/week @ 2024-04-10 628/week @ 2024-04-17 596/week @ 2024-04-24 257/week @ 2024-05-01 350/week @ 2024-05-08 569/week @ 2024-05-15 479/week @ 2024-05-22 796/week @ 2024-05-29 934/week @ 2024-06-05 701/week @ 2024-06-12 635/week @ 2024-06-19 532/week @ 2024-06-26

2,967 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–17MB
~255K SLoC