enricher

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrorNoSyscalls is returned when no syscalls are recorded for a profile.
	ErrorNoSyscalls = "no syscalls recorded for profile"
	// ErrorNoAvcs is returned when no AVCs are recorded for a profile.
	ErrorNoAvcs = "no avcs recorded for profile"
)

Variables

This section is empty.

Functions

func Dial added in v0.4.0

Dial can be used to connect to the default GRPC server by creating a new client.

func ExtractAuditLine added in v0.7.0

func ExtractAuditLine(logLine string) (*types.AuditLine, error)

ExtractAuditLine extracts an auditline from logLine.

func IsAuditLine added in v0.7.0

func IsAuditLine(logLine string) bool

IsAuditLine checks whether logLine is a supported audit line.

func LogFilePath added in v0.7.0

func LogFilePath() string

LogFilePath returns either the path to the audit logs or falls back to syslog if the audit log path does not exist.

Types

type Enricher added in v0.4.0

type Enricher struct {
	apienricher.UnimplementedEnricherServer
	// contains filtered or unexported fields
}

Enricher is the main structure of this package.

func New added in v0.4.0

func New(logger logr.Logger) *Enricher

New returns a new Enricher instance.

func (*Enricher) Avcs added in v0.4.0

func (e *Enricher) Avcs(
	_ context.Context, r *api.AvcRequest,
) (*api.AvcResponse, error)

Avcs returns the AVC messages for a provided profile.

func (*Enricher) ResetAvcs added in v0.4.0

func (e *Enricher) ResetAvcs(
	_ context.Context, r *api.AvcRequest,
) (*api.EmptyResponse, error)

ResetAvcs removes the avcs for a provided profile.

func (*Enricher) ResetSyscalls added in v0.4.0

func (e *Enricher) ResetSyscalls(
	_ context.Context, r *api.SyscallsRequest,
) (*api.EmptyResponse, error)

ResetSyscalls removes the syscalls for a provided profile.

func (*Enricher) Run added in v0.4.0

func (e *Enricher) Run() error

Run the log-enricher to scrap audit logs and enrich them with Kubernetes data (namespace, pod and container).

func (*Enricher) Syscalls added in v0.4.0

Syscalls returns the syscalls for a provided profile.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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