Documentation
¶
Overview ¶
Package secrethandle implements the local-only plugin secret reference boundary. Server configuration carries only secret://<name> handles; plaintext is resolved on the target Edge for one tenant/instance and is never logged or persisted by this package.
Index ¶
Constants ¶
View Source
const ( Scheme = "secret://" DefaultMaxBytes = 64 << 10 )
Variables ¶
View Source
var ( ErrInvalidHandle = errors.New("secrethandle: invalid handle") ErrUndeclaredSecret = errors.New("secrethandle: secret is not declared by plugin") ErrUnsafeSecretPath = errors.New("secrethandle: unsafe secret path") ErrInsecurePermission = errors.New("secrethandle: insecure secret file permission") ErrSecretTooLarge = errors.New("secrethandle: secret exceeds size limit") )
Functions ¶
func ValidateDeclared ¶
ValidateDeclared requires a matching manifest permissions.secrets entry.
Types ¶
type FileProvider ¶
FileProvider resolves secrets from Root/<tenant>/<instance>/<name>. It does not cache plaintext. Callers should zero/discard the returned bytes promptly.
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
Handle is a validated secret://<name> reference. It never contains a value or path.
Click to show internal directories.
Click to hide internal directories.