config

package
v0.2.374 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NamespaceEnvVar = "NAMESPACE_NAME"
View Source
const NodeNameEnvVar = "NODE_NAME"
View Source
const PodNameEnvVar = "POD_NAME"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Exporters                      exporters.ExportersConfig                `mapstructure:"exporters"`
	InitialDelay                   time.Duration                            `mapstructure:"initialDelay"`
	MaxSniffingTime                time.Duration                            `mapstructure:"maxSniffingTimePerContainer"`
	UpdateDataPeriod               time.Duration                            `mapstructure:"updateDataPeriod"`
	MaxDelaySeconds                int                                      `mapstructure:"maxDelaySeconds"`
	MaxJitterPercentage            int                                      `mapstructure:"maxJitterPercentage"`
	MaxImageSize                   int64                                    `mapstructure:"maxImageSize"`
	MaxSBOMSize                    int                                      `mapstructure:"maxSBOMSize"`
	MaxTsProfileSize               int64                                    `mapstructure:"maxTsProfileSize"`
	EnableFullPathTracing          bool                                     `mapstructure:"fullPathTracingEnabled"`
	EnableApplicationProfile       bool                                     `mapstructure:"applicationProfileServiceEnabled"`
	EnableMalwareDetection         bool                                     `mapstructure:"malwareDetectionEnabled"`
	EnablePrometheusExporter       bool                                     `mapstructure:"prometheusExporterEnabled"`
	EnableRuntimeDetection         bool                                     `mapstructure:"runtimeDetectionEnabled"`
	EnableHttpDetection            bool                                     `mapstructure:"httpDetectionEnabled"`
	EnableNetworkTracing           bool                                     `mapstructure:"networkServiceEnabled"`
	EnableNetworkStreaming         bool                                     `mapstructure:"networkStreamingEnabled"`
	EnableNodeProfile              bool                                     `mapstructure:"nodeProfileServiceEnabled"`
	EnableHostMalwareSensor        bool                                     `mapstructure:"hostMalwareSensorEnabled"`
	EnableHostNetworkSensor        bool                                     `mapstructure:"hostNetworkSensorEnabled"`
	NodeProfileInterval            time.Duration                            `mapstructure:"nodeProfileInterval"`
	EnableSeccomp                  bool                                     `mapstructure:"seccompServiceEnabled"`
	ExcludeLabels                  map[string]string                        `mapstructure:"excludeLabels"`
	ExcludeNamespaces              []string                                 `mapstructure:"excludeNamespaces"`
	IncludeNamespaces              []string                                 `mapstructure:"includeNamespaces"`
	EnableSbomGeneration           bool                                     `mapstructure:"sbomGenerationEnabled"`
	EnableEmbeddedSboms            bool                                     `mapstructure:"enableEmbeddedSBOMs"`
	NamespaceName                  string                                   `mapstructure:"namespaceName"`
	NodeName                       string                                   `mapstructure:"nodeName"`
	PodName                        string                                   `mapstructure:"podName"`
	KubernetesMode                 bool                                     `mapstructure:"kubernetesMode"`
	NetworkStreamingInterval       time.Duration                            `mapstructure:"networkStreamingInterval"`
	WorkerPoolSize                 int                                      `mapstructure:"workerPoolSize"`
	WorkerChannelSize              int                                      `mapstructure:"workerChannelSize"`
	BlockEvents                    bool                                     `mapstructure:"blockEvents"`
	EventBatchSize                 int                                      `mapstructure:"eventBatchSize"`
	TestMode                       bool                                     `mapstructure:"testMode"`
	ExcludeJsonPaths               []string                                 `mapstructure:"excludeJsonPaths"`
	ProfilesCacheRefreshRate       time.Duration                            `mapstructure:"profilesCacheRefreshRate"`
	RuleCoolDown                   rulecooldown.RuleCooldownConfig          `mapstructure:"ruleCooldown"`
	EnablePartialProfileGeneration bool                                     `mapstructure:"partialProfileGenerationEnabled"`
	ProcfsScanInterval             time.Duration                            `mapstructure:"procfsScanInterval"`
	OrderedEventQueue              containerwatcher.OrderedEventQueueConfig `mapstructure:"orderedEventQueue"`
	ExitCleanup                    processtreecreator.ExitCleanupConfig     `mapstructure:"exitCleanup"`
}

func LoadConfig

func LoadConfig(path string) (Config, error)

LoadConfig reads configuration from file or environment variables.

func (*Config) IgnoreContainer added in v0.2.325

func (c *Config) IgnoreContainer(ns, podName string, labels map[string]string) bool

func (*Config) SkipNamespace added in v0.2.101

func (c *Config) SkipNamespace(ns string) bool

Jump to

Keyboard shortcuts

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