waf

package
v1.69.1-rc.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// BlockedRequestTag used to convey whether a request is blocked
	BlockedRequestTag = "appsec.blocked"
)

Variables

This section is empty.

Functions

func AddRulesMonitoringTags

func AddRulesMonitoringTags(th trace.TagSetter, wafDiags waf.Diagnostics)

AddRulesMonitoringTags adds the tags related to security rules monitoring

func AddWAFMonitoringTags

func AddWAFMonitoringTags(th trace.TagSetter, rulesVersion string, stats map[string]any)

AddWAFMonitoringTags adds the tags related to the monitoring of the Feature

func NewWAFFeature

func NewWAFFeature(cfg *config.Config, rootOp dyngo.Operation) (listener.Feature, error)

func SetEventSpanTags

func SetEventSpanTags(span trace.TagSetter, events []any) error

SetEventSpanTags sets the security event span tags into the service entry span.

Types

type Feature

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

func (*Feature) SetupActionHandlers

func (waf *Feature) SetupActionHandlers(op *waf.ContextOperation)

func (*Feature) Stop

func (waf *Feature) Stop()

func (*Feature) String

func (*Feature) String() string

Jump to

Keyboard shortcuts

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