secrets

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL