.PHONY: build build: go build -o vault-plugin-example .
While this article focused on secrets engines, vault plugin new -type=auth myauth creates an authentication plugin scaffold. An auth plugin must: vault plugin new
vault plugin new database-plugin --path=database-plugin --type=database vault plugin new
The basic usage is:
func main() { logger := hclog.New(&hclog.LoggerOptions{}) vault plugin new