sharedsec

package
v1.60.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 9 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 ProcessHTTPSDKAction

func ProcessHTTPSDKAction(op dyngo.Operation, actions sharedsec.Actions, actionIds []string)

ProcessHTTPSDKAction does two things:

  • send actions to the parent operation's data listener, for their handlers to be executed after the user handler
  • send an error to the current operation's data listener (created by an SDK call), to signal users to interrupt their 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