The Go library
The Bank-Vaults repository contains several Go packages for interacting with Vault, these packages are organized into the
sdk Go module, which can be pulled in with
go get github.com/bank-vaults/bank-vaults/pkg/sdk and is versioned by the
pkg/sdk/vX.Y.Z Git tags:
Stores JWT bearer tokens in Vault.
(NOTE: The Gin handler has been moved out to gin-utilz )
A wrapper for the official Vault client with automatic token renewal, and Kubernetes support.
A helper for creating database source strings (MySQL/PostgreSQL) with database credentials dynamically based on configured Vault roles (instead of
A simple package to generate self-signed TLS certificates. Useful for bootstrapping situations, when you can’t use Vault’s PKI secret engine.
Examples for using the library part
Some examples are in
- Vault client example
- Dynamic secrets for MySQL example with Gorm
- JWTAuth tokens example with a Gin middleware