sharedsec

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRulesMonitoringTags

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

Add the tags related to security rules monitoring

func AddSecurityEvents

func AddSecurityEvents(op securityEventsAdder, limiter limiter.Limiter, matches []any)

Helper function to add sec events to an operation taking into account the rate limiter.

func AddWAFMonitoringTags

func AddWAFMonitoringTags(th trace.TagSetter, rulesVersion string, overallRuntimeNs, internalRuntimeNs, timeouts uint64)

Add the tags related to the monitoring of the WAF

func ProcessActions

func ProcessActions(op dyngo.Operation, actions sharedsec.Actions, actionIds []string) (interrupt bool)

ProcessActions sends the relevant actions to the operation's data listener. It returns true if at least one of those actions require interrupting the request handler

func RunWAF

func RunWAF(wafCtx *waf.Context, values waf.RunAddressData, timeout time.Duration) waf.Result

Types

This section is empty.

Jump to

Keyboard shortcuts

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