credseal

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package credseal protects credentials stored outside the encrypted payload tables.

Index

Constants

View Source
const CredentialKeyEnv = "DFBG_CREDENTIAL_KEY"

Variables

View Source
var ErrUnavailable = errors.New("credential sealing unavailable")

Functions

func ResolveEnvironmentKey

func ResolveEnvironmentKey(general, alias, aliasName string) (string, error)

ResolveEnvironmentKey applies the migration rule for a legacy alias.

Types

type Sealer

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

func New

func New(ring *keyring.Keyring, environmentKey string) *Sealer

func (*Sealer) Mode

func (s *Sealer) Mode() string

func (*Sealer) Seal

func (s *Sealer) Seal(organizationID, projectID, kind, rowID, secret string) ([]byte, error)

func (*Sealer) Unseal

func (s *Sealer) Unseal(organizationID, projectID, kind, rowID string, sealed []byte) (string, error)

Jump to

Keyboard shortcuts

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