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 ¶
Types ¶
type Kind ¶
type Kind string
Kind distinguishes secrets (values in the backend) from env vars (inline).
type Redactor ¶
type Redactor struct {
// contains filtered or unexported fields
}
func NewRedactor ¶
NewRedactor masks the values (not keys) of KEY=VALUE entries; empty values are ignored.
type SecretMeta ¶
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 ¶
func (m SecretMeta) Sensitive() bool
Click to show internal directories.
Click to hide internal directories.