Documentation
¶
Overview ¶
Package sops implements a SOPS-encrypted, age-backed vault.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptFile ¶
DecryptFile decrypts a SOPS-encrypted file and returns its plaintext.
func EncryptFile ¶
EncryptFile encrypts src with SOPS and age and writes ciphertext to target.
func ResolveAgeKey ¶
func ResolveAgeKey(explicitKeyFile, fallbackDir string) (recipient string, keyPath string, err error)
ResolveAgeKey resolves an existing age key or generates one in fallbackDir.
func ValidateConfiguration ¶
ValidateConfiguration ensures an age key is available for SOPS operations.
Types ¶
type SopsVault ¶
type SopsVault struct {
// contains filtered or unexported fields
}
SopsVault stores vault YAML encrypted with SOPS and age.
func (*SopsVault) Load ¶
func (v *SopsVault) Load() (*files.InstallVault, error)
Load reads, validates, decrypts, and parses the configured vault file.
func (*SopsVault) LoadOrCreate ¶
func (v *SopsVault) LoadOrCreate() (*files.InstallVault, error)
LoadOrCreate loads the vault or returns an empty vault if the file does not exist.
Click to show internal directories.
Click to hide internal directories.