Help us shape the future of Go! Take the 2026 Go Developer Survey

credentials

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EncryptedFileDisabled = "-"
)

Variables

This section is empty.

Functions

func EnvGraphSource added in v0.1.19

func EnvGraphSource(raw map[string]any) (config.EnvLookup, error)

EnvGraphSource exposes credentials config.env entries to ${env:NAME} / ${var:NAME} gate probes and interpolation. It does not read config.files or build a Store.

func NewIntegrations added in v0.3.11

func NewIntegrations(cfg Config, deps EnvDeps) (credentials.Store, error)

NewIntegrations registers credentials/integrations for MCP and OpenAPI with /env and scoped Resolve.

func NewStatic added in v0.3.11

func NewStatic(cfg Config, deps EnvDeps) (credentials.Store, error)

NewStatic registers credentials/env for LLM, platform, and other YAML-static plugins.

Types

type Config

type Config struct {
	Prefix        string            `json:"prefix"`
	Env           map[string]string `json:"env"`
	Files         []string          `json:"files"`
	EncryptedFile string            `json:"encryptedFile"`
	// SecretsKey is the AES master key for encryptedFile (post-interpolation).
	SecretsKey string `json:"secretsKey,omitempty"`
	// ProcessEnv enables os.Getenv lookup (static default true; integrations default false).
	ProcessEnv *bool `json:"processEnv,omitempty"`
	// ScopedEnv preloads integration secrets per scope (L1 config); enc /env add overrides same key.
	ScopedEnv map[string]map[string]string `json:"scopedEnv,omitempty"`
}

type EnvDeps added in v0.1.8

type EnvDeps struct {
	// FS reads/writes dotenv and encrypted secrets files (scope prefixes allowed).
	FS filesystem.Service `json:"fs"`
}

Jump to

Keyboard shortcuts

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