credentials

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 16 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"`
	// ProcessEnv enables os.Getenv lookup (static default true; integrations default false).
	ProcessEnv *bool `json:"processEnv,omitempty"`
	// ManifestFiles lists workspace paths scanned for per-scope env: allowlists (integrations only).
	ManifestFiles []string `json:"manifestFiles,omitempty"`
}

type EnvDeps added in v0.1.8

type EnvDeps struct {
	Workspace workspace.Service `json:"workspace,omitempty"`
}

Jump to

Keyboard shortcuts

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