Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 1.28 KB

README.md

File metadata and controls

33 lines (18 loc) · 1.28 KB

The Go library

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.

    authn

  • pkg/vault

    A wrapper for the official Vault client with automatic token renewal, and Kubernetes support.

    token

  • pkg/db

    A helper for creating database source strings (MySQL/PostgreSQL) with database credentials dynamically based on configured Vault roles (instead of username:password).

    token

  • 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.

Examples for using the library part

Some examples are in cmd/examples/main.go