waf

package
v1.71.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 18 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)

SetEventSpanTags sets the security event span tags related to an appsec event

Types

type Feature

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

func (*Feature) SetupActionHandlers

func (*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