Expand description
HashiCorp Vault server, KV version 2: what vault status and vault kv get/put/list/ metadata get need.
The CLI’s first request for any kv command is GET /v1/sys/internal/ui/mounts/<path>; the
options.version it finds there decides whether it uses KV v1 paths or v2’s
<mount>/data/… and <mount>/metadata/…. NetGet answers that preflight, seal status, health
and leader deterministically from its configuration, and raises vault_read, vault_write
or vault_list for everything that touches a secret. NetGet stores nothing: the model
(or its memory, or the SQLite facility) holds the secrets.
X-Vault-Token reaches the model only as booleans — present, matches the configured token,
a token is configured — never the token itself. See src/server/vault/CLAUDE.md.
Modules§
- actions
- Vault KV v2 actions.
- api
- Routing and rendering. Public so it can be tested without a socket. Vault HTTP API routing and response rendering, KV version 2 only.
Structs§
- Vault
Config - Per-server configuration.
- Vault
Server - Vault server.
Constants§
- DEFAULT_
VAULT_ VERSION - Version reported by
sys/seal-statusandsys/healthwhenvault_versionis absent. - MAX_
REQUEST_ BODY_ BYTES - Largest request body this server will buffer, in bytes.