Vault Plugin New !!top!!
Overview
A Vault plugin allows you to extend Vault with custom:
- Complete feature parity, ergonomics (autocomplete, config file)
- Local development mode (dev server)
- Policy versioning and rollbacks
- Policy audit trail
go 1.21
err := plugins.Serve(plugin.Factory, apiClientMeta.GetTLSConfig()) if err != nil panic(err)
- Secrets engines (
/database,/aws, etc.)- Auth methods (
/jwt,/ldap, etc.)
// pathSecret defines the routes for this engine func (b *Backend) pathSecret() []*framework.Path { return []*framework.Path{ { Pattern: "creds", Fields: map[string]*framework.FieldSchema "username": Type: framework.TypeString, Description: "The desired username", , , Operations: map[logical.Operation]framework.OperationHandler{ logical.ReadOperation: &framework.PathOperation{ Callback: b.handleRead, Summary: "Retrievevault plugin new