Files
vault/website/source/docs/plugin/index.html.md
Calvin Leung Huang 208dc55830 Clarify api_addr related errors on VaultPluginTLSProvider (#3620)
* Mention api_addr on VaultPluginTLSProvider logs, update docs

* Clarify message and mention automatic api_address detection

* Change error message to use api_addr

* Change error messages to use api_addr
2017-12-05 12:01:35 -05:00

1.8 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
docs Custom Plugin Backends docs-plugin Plugin backends are mountable backends that are implemented unsing Vault's plugin system.

Custom Plugin Backends

Plugin backends are the components in Vault that can be implemented separately from Vault's builtin backends. These backends can be either authentication or secret backends.

The api_addr must be set in order for the plugin process establish communication with the Vault server during mount time. If the storage backend has HA enabled and supports automatic host address detection (e.g. Consul), Vault will automatically attempt to determine the api_addr as well.

Detailed information regarding the plugin system can be found in the internals documentation.

Mounting/unmounting Plugin Backends

Before a plugin backend can be mounted, it needs to be registered via the plugin catalog. After the plugin is registered, it can be mounted by specifying the registered plugin name:

$ vault mount -path=my-secrets -plugin-name=passthrough-plugin plugin
Successfully mounted plugin 'passthrough-plugin' at 'my-secrets'!

Listing mounts will display backends that are mounted as plugins, along with the name of plugin backend that is mounted:

$ vault mounts
Path         Type       Accessor            Plugin              Default TTL  Max TTL  Force No Cache  Replication Behavior  Description
my-secrets/  plugin     plugin_deb84140     passthrough-plugin  system       system   false           replicated
...

Unmounting a plugin backend is the identical to unmounting internal backends:

$ vault unmount my-secrets