package pluginidentityutil

import "github.com/hashicorp/vault/sdk/helper/pluginidentityutil"

Index

Variables

var ErrPluginWorkloadIdentityUnsupported = errors.New("plugin workload identity not supported in Vault community edition")

Functions

func AddPluginIdentityTokenFields

func AddPluginIdentityTokenFields(m map[string]*framework.FieldSchema)

AddPluginIdentityTokenFields adds plugin identity token fields to the given field schema map.

Types

type PluginIdentityTokenParams

type PluginIdentityTokenParams struct {
	// IdentityTokenTTL is the duration that tokens will be valid for
	IdentityTokenTTL time.Duration `json:"identity_token_ttl"`
	// IdentityTokenAudience identifies the recipient of the token
	IdentityTokenAudience string `json:"identity_token_audience"`
}

PluginIdentityTokenParams contains a set of common parameters that plugins can use for setting plugin identity token behavior.

func (*PluginIdentityTokenParams) ParsePluginIdentityTokenFields

func (p *PluginIdentityTokenParams) ParsePluginIdentityTokenFields(d *framework.FieldData) error

ParsePluginIdentityTokenFields provides common field parsing to embedding structs.

func (*PluginIdentityTokenParams) PopulatePluginIdentityTokenData

func (p *PluginIdentityTokenParams) PopulatePluginIdentityTokenData(m map[string]interface{})

PopulatePluginIdentityTokenData adds PluginIdentityTokenParams info into the given map.

Source Files

errors.go fields.go

Version
v0.18.0 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
1 month ago

Tools for package owners.