HashiCorp Vault SDK¶
One API for HashiCorp Vault in five languages: TypeScript, Rust, Go, Python and Java. Every package
has the same functions, options, defaults, error codes and behaviour, tested against a real
hashicorp/vault:2.2.2 in Docker.
| Language | Package | Coverage |
|---|---|---|
| TypeScript | @grow-codes/hashicorp-vault |
|
| Rust | grow-hashicorp-vault |
|
| Go | github.com/grow-codes-packages/hashicorp-vault/go |
|
| Python | grow-hashicorp-vault |
|
| Java | codes.grow.packages:hashicorp-vault |
What you get¶
- Client with health, authenticated ping and server version (Client).
- Configuration from code or
GROW_HASHICORP_VAULT_*/ vendor environment variables, immutable and validated (Configuration). - Retries with full-jitter backoff and
Retry-After, connect/request/total timeouts and cancellation in every language. - Typed errors with one set of codes across languages (Error handling).
- Redaction everywhere: credentials never appear in errors, logs, hooks or
toString(Redaction). - Secrets: typed getters, bulk reads,
loadEnv, watch and a TTL cache (Secrets). - The HashiCorp Vault API (Functions): auth with token renewal, KV v1/v2, transit, database credentials and leases, PKI, system and admin, capability checks and namespaces, response wrapping and testing helpers.
Start with Install and the Quickstart.
Independent project
This SDK is made by Grow Codes. HashiCorp Vault is a trademark of HashiCorp, Inc. (an IBM company). This project is not affiliated with or endorsed by HashiCorp, Inc. or IBM. See License & disclaimer.