secrets

package
v0.0.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AgePublicKey = "age1mcl448l48v0e4t5ljek8htn5s07amz5zwr54hkq5qpawgapc9dpstnhksq"

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