Documentation
¶
Index ¶
Constants ¶
View Source
const AgePublicKey = "age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p"
AgePublicKey is the public key for encrypting SOPS files.
Variables ¶
View Source
var FilePath = filepath.Join("resources", "secrets")
FilePath defines the path where SOPS encrypted YAML files reside in the Webkit app. Needs a base path prepended.
Functions ¶
func FilePathFromEnv ¶
func FilePathFromEnv(e env.Environment) string
FilePathFromEnv returns a filepath based off the environment.
For example, resources/secrets/{production}.yaml
func Resolve ¶
func Resolve(ctx context.Context, def *appdef.Definition, cfg ResolveConfig) error
Types ¶
type ResolveConfig ¶
type ResolveConfig struct {
SOPSClient sops.EncrypterDecrypter
BaseDir string
}
ResolveConfig defines the data needed in order to decrypt the definitions environments secrets.
Click to show internal directories.
Click to hide internal directories.