Documentation
¶
Index ¶
Constants ¶
View Source
const ( // KeyFileName is the name of the age private key file. KeyFileName = "age.key" // KeyEnvVar is the environment variable name for the age key. KeyEnvVar = "SOPS_AGE_KEY" )
Variables ¶
This section is empty.
Functions ¶
func NewIdentity ¶
func NewIdentity() (*age.X25519Identity, error)
NewIdentity is a helper function for generating age.X25519Identity.
func ReadIdentity ¶
func ReadIdentity() (*age.X25519Identity, error)
ReadIdentity returns the age identity key from environment or file.
Checks in order: 1. SOPS_AGE_KEY environment variable. 2. ~/.config/webkit/age.key (local dev)
func WritePrivateKey ¶
WritePrivateKey writes an age private key to the config directory.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the SOPS Provider interface for age encryption, keys are lazy loaded.
func NewProvider ¶
NewProvider creates a new age provider by reading keys.
Returns an error if it couldn't extract/read public and private keys.
func (*Provider) DecryptArgs ¶
func (*Provider) EncryptArgs ¶
func (*Provider) Environment ¶
Click to show internal directories.
Click to hide internal directories.