Documentation ¶
Index ¶
- func AddRulesMonitoringTags(th trace.TagSetter, wafDiags *waf.Diagnostics)
- func AddSecurityEvents(op securityEventsAdder, limiter limiter.Limiter, matches []any)
- func AddWAFMonitoringTags(th trace.TagSetter, rulesVersion string, ...)
- func ProcessActions(op dyngo.Operation, actions sharedsec.Actions, actionIds []string) (interrupt bool)
- func ProcessHTTPSDKAction(op dyngo.Operation, actions sharedsec.Actions, actionIds []string)
- func RunWAF(wafCtx *waf.Context, values waf.RunAddressData, timeout time.Duration) waf.Result
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 ¶
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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.