secrets

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package secrets stores worker-local credentials. Values have no network read API.

Index

Constants

View Source
const MaxValue = 4096

Variables

This section is empty.

Functions

func ValidName

func ValidName(name string) bool

Types

type Redactor

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

Redactor masks exact values and common text encodings. Arbitrary transforms, screenshots, and application-managed files are outside this protection.

func NewRedactor

func NewRedactor(values map[string]string) Redactor

func (Redactor) JSON

func (r Redactor) JSON(data []byte) ([]byte, error)

JSON redacts decoded strings, preserving JSON syntax even for short values.

func (Redactor) Text

func (r Redactor) Text(text string) string

type Store

type Store struct {
	Dir     string
	WorkDir string
}

Store uses private, atomic files, not encryption or an execution sandbox. Keep its directory outside the filesystem API's workspace.

func (Store) Delete

func (s Store) Delete(ctx context.Context, name string) error

func (Store) Names

func (s Store) Names() ([]string, error)

func (Store) Set

func (s Store) Set(ctx context.Context, name, value string) error

func (Store) Snapshot

func (s Store) Snapshot() (map[string]string, error)

Snapshot is for destination-side injection and redaction only, never RPC results.

Jump to

Keyboard shortcuts

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