credentials

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const GlobalScope = ""

GlobalScope is used for YAML-level refs (apiKeyRef, botTokenRef, telemetry keys). Integration tools pass a non-empty scope (MCP server name, openapi.<api>, etc.).

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret struct {
	Value string
	Ref   string
}

type Store

type Store interface {
	Resolve(ctx context.Context, scope string, ref string) (Secret, error)
}

Store resolves secret refs. When scope is GlobalScope, plugins use the global lookup chain (context override, config env, encrypted file, dotenv, process env). When scope is non-empty, integrations require each env: ref to be declared under that scope in the integration manifest (mcp.json / api.json).

Jump to

Keyboard shortcuts

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