config

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 6 Imported by: 1 module, 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

This section is empty.

Variables

This section is empty.

Functions

func ParseConfiguration

func ParseConfiguration()

func ValidateConfiguration

func ValidateConfiguration()

Types

type Specification

type Specification struct {
	Port                            uint16   `json:"port" split_words:"true" required:"false" default:"8085"`
	HealthPort                      uint16   `json:"healthPort" split_words:"true" required:"false" default:"8081"`
	DiscoveryAttributesExcludesHost []string `json:"discoveryAttributesExcludesHost" split_words:"true" required:"false"`
	Hostname                        string   `json:"hostname" split_words:"true" required:"false"`
	DisableRunc                     bool     `json:"disableRunc" split_words:"true" required:"false"`
	// NetworkStrictRootQdisc controls how network attacks behave on
	// interfaces whose root qdisc isn't `noqueue` (e.g. the kernel default
	// `mq` on managed-cloud nodes):
	//   - true (default): refuse the attack in the prepare step.
	//   - false: install the attack, but snapshot the root qdisc tree
	//     beforehand and replay it on revert so the cloud-tuned state
	//     (e.g. GKE's `mq + fq` with `buckets=32768 horizon=2s`) is
	//     preserved instead of being reset to kernel defaults.
	// STEADYBIT_EXTENSION_NETWORK_STRICT_ROOT_QDISC
	NetworkStrictRootQdisc bool `json:"networkStrictRootQdisc" split_words:"true" required:"false" default:"true"`
	// FillMemoryReserve is the amount of memory the "fill memory" attack always leaves available so
	// the host's OS and kubelet stay responsive. Filling a Kubernetes node to a true 100% starves
	// the kubelet and takes the node NotReady; leaving this reserve avoids that. Accepts suffixes
	// K/M/G or % (parsed by the memfill binary). See ADM-1970.
	// STEADYBIT_EXTENSION_FILL_MEMORY_RESERVE
	FillMemoryReserve string `json:"fillMemoryReserve" split_words:"true" required:"false" default:"512MiB"`
	// FillMemoryOomScoreAdj is the oom_score_adj applied to the fill process. The default -996 sits
	// just above the agent/extension-host (-997), so if memory is ever exhausted the fill is killed
	// before the steadybit tooling, which stays alive to report and roll back.
	// STEADYBIT_EXTENSION_FILL_MEMORY_OOM_SCORE_ADJ
	FillMemoryOomScoreAdj int `json:"fillMemoryOomScoreAdj" split_words:"true" required:"false" default:"-996"`
	// TLSInterceptCaCert / TLSInterceptCaKey point at a PEM certificate authority
	// used by 'Intercept Outgoing HTTP Request' to mint per-hostname certificates, which is
	// what lets it return a synthesized response for an HTTPS dependency instead
	// of cleartext HTTP only. Unset (the default) leaves HTTPS untouched.
	//
	// The CA is the customer's: they generate it, choose its validity, and install
	// it in the truststores of the workloads they want to fault. Because it can
	// impersonate any HTTPS endpoint to anything trusting it, mount it from a
	// Secret and keep this to test environments.
	// STEADYBIT_EXTENSION_TLS_INTERCEPT_CA_CERT / _KEY
	TLSInterceptCaCert string `json:"tlsInterceptCaCert" split_words:"true" required:"false"`
	TLSInterceptCaKey  string `json:"tlsInterceptCaKey" split_words:"true" required:"false"`
	// TLSInterceptLeafValidity is how long the per-hostname certificates the
	// proxy mints stay valid. Shorter narrows the window in which a leaf that
	// escaped the proxy could be used; it is always clamped to the CA's own
	// expiry. Empty keeps the proxy's default (24h).
	// STEADYBIT_EXTENSION_TLS_INTERCEPT_LEAF_VALIDITY
	TLSInterceptLeafValidity time.Duration `json:"tlsInterceptLeafValidity" split_words:"true" required:"false"`
}

Specification is the configuration specification for the extension. Configuration values can be applied through environment variables. Learn more through the documentation of the envconfig package. https://github.com/kelseyhightower/envconfig

var (
	Config Specification
)

func (Specification) TLSInterceptEnabled added in v1.8.0

func (s Specification) TLSInterceptEnabled() bool

TLSInterceptEnabled reports whether HTTPS response injection is configured.

Jump to

Keyboard shortcuts

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