secrets

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package secrets implements secrets storage backends

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeSecrets

func MergeSecrets(defaultSecrets, secrets map[string]string) map[string]string

func NewAWSSecretsManagerService added in v0.6.0

func NewAWSSecretsManagerService(secretPrefix string) (*awsSecretsService, error)

func NewHashicorpVaultService added in v0.6.0

func NewHashicorpVaultService(ctx context.Context, log *slog.Logger, cfg VaultConfig) (*hashicorpVaultService, error)

Types

type VaultConfig added in v0.6.0

type VaultConfig struct {
	Address       string // Vault server address (e.g., http://localhost:8200)
	Token         string // Vault token for authentication (used when AuthMethod=="token")
	SecretPrefix  string // Path prefix for secrets (e.g., "secrets/builder-hub")
	MountPath     string // Vault KV v2 mount path (e.g., "secret", defaults to "secret")
	AuthMethod    string // "token" (default) or "kubernetes"
	AuthMountPath string // Vault auth mount path for Kubernetes auth (e.g., "k8s/eth-l1-prod", defaults to "kubernetes")
	Role          string // Role name for Kubernetes auth (required if AuthMethod=="kubernetes")
	Jwt           string // ServiceAccount JWT for Kubernetes auth (required if AuthMethod=="kubernetes")
}

Jump to

Keyboard shortcuts

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