Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Material ¶
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).
Click to show internal directories.
Click to hide internal directories.