Add the required HashiCorp Vault SDK dependencies.
var config config if err := entry.DecodeJSON(&config); err != nil return nil, err vault plugin new
You'll use the HashiCorp Vault Plugin SDK, which provides the framework for building plugins. 2. Implement the Plugin Interface Add the required HashiCorp Vault SDK dependencies
Recommendation:
We will build a new mock secrets engine called vault-plugin-secrets-custom . This plugin will expose a read/write path for static configuration and a dynamic path that returns a generated API token accompanied by a custom TTL. Project Structure Organize your workspace using the standard Go layout: err != nil return nil