diff --git a/sdk/logical/system_view.go b/sdk/logical/system_view.go index f0aa22efce..6aafcd1370 100644 --- a/sdk/logical/system_view.go +++ b/sdk/logical/system_view.go @@ -319,3 +319,14 @@ func (d StaticSystemView) DeregisterRotationJob(_ context.Context, _ *rotation.R func (d StaticSystemView) DownloadExtractVerifyPlugin(_ context.Context, _ *pluginutil.PluginRunner) error { return errors.New("DownloadExtractVerifyPlugin is not implemented in StaticSystemView") } + +// PluginLicenseUtil defines the functions needed to request License and PluginEnv +// by the plugin licensing under github.com/hashicorp/vault-licensing +// This only should be used by the plugin to get the license and plugin environment +type PluginLicenseUtil interface { + // License returns the raw license of the running Vault instance + License() (string, error) + + // PluginEnv returns Vault environment information used by plugins + PluginEnv(context.Context) (*PluginEnvironment, error) +}