sharedsec

package
v1.66.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionsFromEntry added in v1.65.0

func ActionsFromEntry(actionType string, params any) []sharedsec.Action

ActionsFromEntry returns one or several actions generated from the WAF returned action entry Several actions are returned when the action is of block_request type since we could be blocking HTTP or GRPC

func AddRulesMonitoringTags

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

AddRulesMonitoringTags adds the tags related to security rules monitoring

func AddSecurityEvents

func AddSecurityEvents(holder *trace.SecurityEventsHolder, limiter limiter.Limiter, matches []any)

AddSecurityEvents is a helper function to add sec events to an operation taking into account the rate limiter.

func AddWAFMonitoringTags

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

AddWAFMonitoringTags adds the tags related to the monitoring of the WAF

func ProcessActions

func ProcessActions(op dyngo.Operation, actions map[string]any) (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 When SDKError is not nil, this error is sent to the op with EmitData so that the invoked SDK can return it

func RunWAF

func RunWAF(wafCtx *waf.Context, values waf.RunAddressData) 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