vault

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Material

type Material struct {
	APIKey    string
	Workspace string
	BaseURL   string
}

func Resolve

func Resolve(ref controlplane.CredentialRef) (Material, error)

Resolve returns the credential material for the given ref under the permissive default (all backends enabled). Retained for back-compat; new call sites should prefer ResolveWithOptions so they can opt out of the inline backend for hosted-service hardening.

func ResolveWithOptions added in v1.2.0

func ResolveWithOptions(ref controlplane.CredentialRef, opts Options) (Material, error)

ResolveWithOptions is the Options-aware variant of Resolve. In the default Options zero value it behaves exactly like Resolve.

type Options added in v1.2.0

type Options struct {
	// DisableInline rejects credential refs with backend=inline.
	// Intended for hosted-service deployments where operators must
	// use env/file/external vault backends so secrets never land in
	// control-plane records or logs. Driven by the
	// MCP_DISABLE_INLINE_SECRETS env var.
	DisableInline bool
}

Options tunes credential resolution behaviour. Zero value preserves the historical permissive default (all three backends enabled).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL