secretguardhost

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const BindingID = "secret_guard"

BindingID is the stable host binding identity for secret guard host composition.

Variables

View Source
var ErrNilBinding = errors.New("secretguardhost: binding is nil")

ErrNilBinding is returned when a secretguardhost binding is nil.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	Environment Environment
	SingleUser  SingleUserOptions
}

Binding envelopes host-provided secret-guard configuration for standard featurehost composition. It implements featurehost.Binding.

func (*Binding) HostBindingID

func (b *Binding) HostBindingID() string

HostBindingID returns the stable identifier for secret guard host bindings.

func (*Binding) Registration

func (b *Binding) Registration() featurehost.Registration

Registration returns a featurehost.Registration wrapping this binding.

func (*Binding) ValidateHostBinding

func (b *Binding) ValidateHostBinding() error

ValidateHostBinding checks the host binding configuration.

type Environment

type Environment interface {
	Lookup(name string) (value string, ok bool)
	Snapshot() []string
}

Environment provides environment variable access for secret catalog loading.

type MatcherOptions

type MatcherOptions struct {
	PreserveKnownPrefixes bool
	MaskByte              byte
}

MatcherOptions controls redaction presentation for the composed static matcher.

type SingleUserOptions

type SingleUserOptions struct {
	IncludePopularEnv bool
	IncludeEnv        []string
	ExcludeEnv        []string
	MinSecretBytes    int
	Matcher           MatcherOptions
	MatcherConfigured bool
}

SingleUserOptions configures single-user catalog and matcher options.

Jump to

Keyboard shortcuts

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