Files
Assistant/contracts/secrets/types.go
T
m caad0ae2d4
CI / test (push) Successful in 14s
CI / test (pull_request) Successful in 14s
DEV-000061 checkpoint interaction chat foundation
2026-08-17 14:15:07 +03:00

29 lines
791 B
Go

package secrets
// CredentialRef identifies a secret through canonical metadata without exposing
// the underlying secret value.
type CredentialRef string
// SecretPurpose is a typed, non-secret description of why a credential exists.
type SecretPurpose string
const (
SecretPurposeDatabasePassword SecretPurpose = "DATABASE_PASSWORD"
)
// RuntimeConsumer identifies a trusted runtime allowed to resolve a credential.
type RuntimeConsumer string
const (
RuntimeConsumerCore RuntimeConsumer = "core-runtime"
)
// SecretFileRef is bootstrap delivery metadata for the V1 protected local
// file backend. Path is a reference, not a secret value.
type SecretFileRef struct {
CredentialRef CredentialRef
Purpose SecretPurpose
Consumer RuntimeConsumer
Path string
}