secrets

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package secrets encrypts project secret values before they reach SQLite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(database *store.Store, keyPath string) (*Manager, error)

func (*Manager) Delete

func (m *Manager) Delete(ctx context.Context, secretID string) error

func (*Manager) DeleteEnvironment

func (m *Manager) DeleteEnvironment(ctx context.Context, secretID string) error

func (*Manager) List

func (m *Manager) List(ctx context.Context, projectID string) ([]store.Secret, error)

func (*Manager) ResolveForJob

func (m *Manager) ResolveForJob(ctx context.Context, jobID string) (map[string]string, error)

ResolveForEnvironment merges project values with approved environment values. The narrower environment scope deliberately wins on duplicate names.

func (*Manager) ResolveProject

func (m *Manager) ResolveProject(ctx context.Context, projectID string) (map[string]string, error)

ResolveProject decrypts values only for the worker process. Callers must not serialize the returned map or persist it in a run snapshot.

func (*Manager) Upsert

func (m *Manager) Upsert(ctx context.Context, projectID, name, value string) (store.Secret, error)

func (*Manager) UpsertEnvironment

func (m *Manager) UpsertEnvironment(ctx context.Context, environmentID, name, value string) (store.EnvironmentSecret, error)

Jump to

Keyboard shortcuts

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