Docs: Implementing the plugin version interface (#19606)

This commit is contained in:
Tom Proctor
2023-03-20 17:43:31 +00:00
committed by GitHub
parent 09d58d1858
commit fd422cb49a
3 changed files with 49 additions and 1 deletions

View File

@@ -100,6 +100,19 @@ be omitted.
[api_addr]: /vault/docs/configuration#api_addr
## Leveraging plugin versioning
@include 'plugin-versioning.mdx'
Auth and secrets plugins based on `framework.Backend` from the SDK should set the
[`RunningVersion`](https://github.com/hashicorp/vault/blob/sdk/v0.6.0/sdk/framework/backend.go#L95-L96)
variable, and the framework will implement the version interface.
Database plugins have a smaller API than `framework.Backend` exposes, and should
instead implement the
[`PluginVersioner`](https://github.com/hashicorp/vault/blob/sdk/v0.6.0/sdk/logical/logical.go#L150-L154)
interface directly.
## Building a Plugin from Source
To build a plugin from source, first navigate to the location holding the