Enigma machine secret engine for Hashicorp Vault
I wrote a plugin for Hashicorp Vault that implements an Enigma machine. It serves as a self contained but complete example that you can use to build your own plugins.
This page will hold a step by step guide to writing your own Vault secret engine plugin, covering:
- The build environment
- Organize the code
- Your first function
- Debug your plugin with Delve
- Unit testing
- Accepting parameters
- Different paths for different purposes
- Persist state and secrets
- Upgrading your plugin without loosing all of your secrets
Stay tuned, but until then, have a look at the plugin source on Github!