secret

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package secret resolves encrypted configuration values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAge

func DecryptAge(ciphertext, identityPath string) (string, error)

DecryptAge decrypts an age-encrypted value using identities from identityPath. Both armored and raw age payloads are supported.

func Resolve

func Resolve(value string) (string, error)

Resolve expands supported secret references. Plain values are returned as-is. Supported references are env:NAME, file:/path/to/secret, op:REF, aws-sm:SECRET_ID, and gcloud-secret:SECRET_ID.

func ResolveContext

func ResolveContext(ctx context.Context, value string) (string, error)

ResolveContext expands supported secret references using ctx for external secret-manager CLI calls.

Types

This section is empty.

Jump to

Keyboard shortcuts

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