Documentation
¶
Index ¶
Constants ¶
View Source
const EncryptedFileName = "secrets.enc"
View Source
const EnvBackend = "DEVSY_SECRETS_BACKEND"
View Source
const EnvPassphrase = "DEVSY_SECRETS_PASSPHRASE" // #nosec G101 -- env var name, not a credential.
View Source
const IndexFileName = "secrets.yaml"
View Source
const KeyFileName = "secrets.key"
Variables ¶
View Source
var ErrSecretNotFound = errors.New("secret not found")
Functions ¶
func ValidateName ¶ added in v1.10.0
Types ¶
type Kind ¶ added in v1.10.0
type Kind string
Kind distinguishes secrets (values in the backend) from env vars (inline).
type Redactor ¶ added in v1.10.0
type Redactor struct {
// contains filtered or unexported fields
}
func NewRedactor ¶ added in v1.10.0
NewRedactor masks the values (not keys) of KEY=VALUE entries; empty values are ignored.
type SecretMeta ¶ added in v1.10.0
type SecretMeta struct {
Name string `json:"name"`
Context string `json:"context"`
Kind Kind `json:"kind"`
Value string `json:"value,omitempty"`
Created time.Time `json:"created"`
LastUsed time.Time `json:"lastUsed,omitzero"`
Orphaned bool `json:"-"`
}
func (SecretMeta) Sensitive ¶ added in v1.10.0
func (m SecretMeta) Sensitive() bool
Click to show internal directories.
Click to hide internal directories.