plugin register with artifact stubs VAULT-32686 (#29113)

* add plugin catalog's entValidate() and setInternal() oss stubs 
* create plugin register command constructor oss stub
* create EntPluginRunner oss stub
* add validateSHA256() oss stub to validate plugin catalog update input
This commit is contained in:
Thy Ton
2025-01-09 08:20:09 -08:00
committed by GitHub
parent 80fe86a352
commit 4f14f7bfec
8 changed files with 189 additions and 118 deletions

View File

@@ -57,6 +57,8 @@ const MultiplexingCtxKey string = "multiplex_id"
// PluginRunner defines the metadata needed to run a plugin securely with
// go-plugin.
type PluginRunner struct {
EntPluginRunner
Name string `json:"name" structs:"name"`
Type consts.PluginType `json:"type" structs:"type"`
Version string `json:"version" structs:"version"`

View File

@@ -0,0 +1,8 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
//go:build !enterprise
package pluginutil
type EntPluginRunner struct{}