MCPcopy Index your code
hub / github.com/ChrisMacNaughton/vault-rs

github.com/ChrisMacNaughton/vault-rs @2.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.1.1 ↗ · + Follow
111 symbols 234 edges 5 files 45 documented · 41%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Extension points exported contracts — how you extend this code

TryFrom (Interface)
Waiting to stabilize: https://github.com/rust-lang/rust/issues/33417 Attempt to construct `Self` via a conversion. [5 …
src/lib.rs
TryInto (Interface)
Waiting to stabilize: https://github.com/rust-lang/rust/issues/33417 An attempted conversion that consumes `self`, whic [1 …
src/lib.rs

Core symbols most depended-on inside this repo

parse_vault_response
called by 18
src/client/mod.rs
handle_reqwest_response
called by 13
src/client/mod.rs
call_endpoint
called by 12
src/client/mod.rs
set_secret
called by 9
src/client/mod.rs
panic_non_empty
called by 7
src/lib.rs
get_secret
called by 7
src/client/mod.rs
try_into
called by 5
src/lib.rs
parse_endpoint_response
called by 5
src/client/mod.rs

Shape

Method 54
Class 29
Function 22
Enum 4
Interface 2

Languages

Rust100%

Modules by API surface

src/client/mod.rs87 symbols
src/lib.rs22 symbols
examples/json.rs1 symbols
examples/basic.rs1 symbols

For agents

$ claude mcp add vault-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page