| Requirement | Description | |-------------|-------------| | | Version 1.11.0 or higher. Check with vault -v . | | Go (1.21+) | Vault plugins are written in Go. | | Make / GCC | For compiling the plugin binary. | | Git | For fetching dependencies. | | Vault Dev Server | For testing (recommended). |
shasum -a 256 ./bin/phish Then register it:
vault auth enable -path=myauth myauth Then authenticate: vault plugin new
vault plugin register \ -sha256=<output_of_shasum> \ -command=phish \ secret phish Verify registration:
vault plugin new [options] <name> Supported options: | | Make / GCC | For compiling the plugin binary
Install Vault on macOS, Linux, or WSL2. Windows is not officially supported for plugin development. The basic usage is:
vault server -dev -dev-plugin-dir=./bin -log-level=debug Then check the plugin’s output in Vault’s logs. | shasum -a 256
| Option | Description | |--------|-------------| | -type | Type of plugin: secrets (default) or auth . | | -directory | Directory to create the plugin scaffold in (defaults to current directory). |