This repository contains several Go packages for interacting with Vault:
-
pkg/auth
A GitHub OAuth2 based authentication system as a Gin Middleware, stores JWT bearer tokens in Vault.
-
pkg/vault
A wrapper for the official Vault client with automatic token renewal, and Kubernetes support.
-
pkg/db
A helper for creating database source strings (MySQL/PostgreSQL) with database credentials dynamically based on configured Vault roles (instead of
username:password
). -
pkg/tls
A simple package to generate self-signed TLS certificates. Useful for bootstrapping situations, when you can't use Vault's PKI secret engine.
Some examples are in cmd/examples/main.go