sinjector

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 44 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DefaultListenAddr is the default SIP listen address.
	DefaultListenAddr = "0.0.0.0:4096"
	// DefaultSecretProbeInterval bounds how often Secret runtime status is refreshed.
	DefaultSecretProbeInterval = 2 * time.Minute
)
View Source
const (
	// PlaceholderPrefix marks an env secret reference in proxied requests.
	PlaceholderPrefix = "agentz:resolve:env:"
)

Variables

This section is empty.

Functions

func ParseSecretHosts

func ParseSecretHosts(hosts []string) ([]string, error)

ParseSecretHosts validates secret hosts and returns stable values.

func SecretHostMatches

func SecretHostMatches(connectHost string, hosts []string) bool

SecretHostMatches reports whether a CONNECT destination matches any canonical secret host.

func Serve

func Serve(ctx context.Context, cfg Config) error

Serve starts the secret injection proxy and blocks until shutdown.

Types

type Config

type Config struct {
	Addr                    string
	OpenBaoAddr             string
	OpenBaoSecretMountPath  string
	OpenBaoK8sAuthRole      string
	OpenBaoK8sAuthMountPath string
	OpenBaoK8sAuthTokenPath string
	AgentName               string
	CACertPath              string
	CAKeyPath               string
	SecretProbeInterval     time.Duration
	Verbose                 bool
}

Config describes how to start the secret injection proxy.

Jump to

Keyboard shortcuts

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