falco

package
v0.0.1-rc.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: 15 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

View Source
const (
	// ServiceName is the OTLP resource service.name the collector assigns to Falco alert logs.
	ServiceName = "falco"

	OperationSpawnShell = "spawn-shell"
	OutcomeObserved     = "observed"
	Coverage            = "falco-runtime-alert"
)
View Source
const (
	PluginID = "falco"
	// DefaultShellRule is the stock Falco rule that reports an interactive shell in a container.
	DefaultShellRule = "Terminal shell in container"
)

Variables

This section is empty.

Functions

func Descriptor

func Descriptor() discovery.Descriptor

Descriptor declares the plugin. It consumes and publishes no collection and introduces no identity scheme; its claims use the Kubernetes and core ProcessClass schemes.

Types

type CLIConfig

type CLIConfig struct {
	ClusterID string
	SourceID  string
}

CLIConfig contains Falco-owned runtime options.

func (*CLIConfig) RegisterFlags

func (config *CLIConfig) RegisterFlags(flags *pflag.FlagSet) error

RegisterFlags registers Falco flags in the falco-* namespace.

type Config

type Config struct {
	ClusterID string
	SourceID  string
	// ShellRules are the Falco rule names that report an interactive shell.
	ShellRules []string
}

Config configures the plugin.

type Plugin

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

Plugin is a telemetry-only capability. Falco alerts arrive through the shared OTLP receiver; the plugin owns no provider connection or contribution.

func New

func New(config Config) (*Plugin, error)

New validates config and applies the default shell rule.

func (*Plugin) Descriptor

func (p *Plugin) Descriptor() discovery.Descriptor

Descriptor implements discovery.Plugin.

func (*Plugin) Run

func (p *Plugin) Run(ctx context.Context, _ discovery.Runtime) error

Run blocks until ctx ends; alerts arrive through the shared OTLP receiver.

func (*Plugin) SourceID

func (p *Plugin) SourceID() string

SourceID implements discovery.PluginInstance.

func (*Plugin) TelemetryMappings

func (p *Plugin) TelemetryMappings() []telemetry.Mapping

TelemetryMappings implements discovery.TelemetryMappingProvider.

Jump to

Keyboard shortcuts

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