Documentation
¶
Overview ¶
Package secret resolves secret:// references at mount time without placing credential values in topology, Graph IR, diagrams, or evidence artifacts.
Index ¶
- Constants
- func MarshalJSON(document Document) ([]byte, error)
- func MarshalYAML(document Document) ([]byte, error)
- func Validate(document Document) error
- func ValidateReference(reference string) error
- type Binding
- type Document
- type EnvironmentProvider
- type Provider
- type Registry
- type Resolution
- type Store
- type Value
Constants ¶
const (
APIVersion = "openrealtime.ai/secrets/v1alpha1"
)
Variables ¶
This section is empty.
Functions ¶
func MarshalJSON ¶
func MarshalYAML ¶
func Validate ¶
Validate checks a programmatically constructed document without resolving or reading any secret. ParseJSON and ParseYAML already perform this check.
func ValidateReference ¶
Types ¶
type Binding ¶
type Binding struct {
Provider string `json:"provider" yaml:"provider"`
Locator string `json:"locator" yaml:"locator"`
}
Binding identifies a provider and provider-specific non-secret locator. There is intentionally no inline/value/data field.
type Document ¶
type EnvironmentProvider ¶
EnvironmentProvider is opt-in. It receives an injected lookup function so tests and embedders need not mutate process-global environment state.
type Provider ¶
Provider returns newly allocated secret bytes owned by the caller. It must honor cancellation and must not cache values past its own documented lifecycle. Providers can wrap an environment, file-descriptor broker, operating-system keychain, KMS, or remote secret manager.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is mutable deployment assembly state. NewStore snapshots every selected registration so later registration cannot change a mounted graph.
func NewRegistry ¶
func NewRegistry() *Registry
type Resolution ¶
type Resolution struct {
Reference string `json:"reference"`
BindingDigest string `json:"binding_digest"`
Provider string `json:"provider"`
ProviderRuntime inspect.ArtifactIdentity `json:"provider_runtime"`
}
Resolution is safe management-plane evidence: it proves which catalog binding and provider implementation were selected, without exposing the locator or a digest of potentially low-entropy secret bytes.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an immutable catalog of provider selections. Fingerprint covers references and non-secret provider locators, never the resolved values.
func (*Store) Identity ¶
func (store *Store) Identity() inspect.ArtifactIdentity