This is yet another golang vault client. It uses the official vault go client but adds some requests and responses types and some convenient methods for an improved Developing experience.
Typing every request and response is rather time consuming, only a few vault APIs are implemented at the moment. If there is demand for us to use other APIs, they will be added. We are also always open to Pull Requests :)
Currently, these APIs are implemented:
Transit(mountPoint)
Token-based and Kubernetes Auth are supported as of now.
Initialize a new Vault Client using your token and endpoint:
Once the Vault Client is created, instanciate new clients for each engine:
Transit Encrypt/Decrypt Example
Tests require a running docker daemon. The test will automatically create a vault container.
> make test