Documentation
¶
Overview ¶
Package crsdata embeds stock OWASP CRS *.data phrase lists used by @pmFromFile for operator-side Coraza validation (WithRootFS). Keep in sync with modsecurity-proxy-wasm @crs-data catalog assets.
Index ¶
Constants ¶
View Source
const AnnotationAllowCRSOverride = "seclang.kubewaf.io/allow-crs-override"
AnnotationAllowCRSOverride must be set to "true" on a PhraseList whose fileName is a stock CRS basename before the dataplane will inject an override.
Variables ¶
View Source
var Basenames = []string{
"ai-critical-artifacts.data",
"asp-dotnet-errors.data",
"iis-errors.data",
"java-classes.data",
"lfi-os-files.data",
"php-errors.data",
"php-function-names-933150.data",
"php-variables.data",
"restricted-files.data",
"restricted-upload.data",
"ruby-errors.data",
"scanners-user-agents.data",
"sql-errors.data",
"ssrf-no-scheme.data",
"ssrf.data",
"unix-shell-aliases.data",
"unix-shell-builtins.data",
"unix-shell.data",
"web-shells-asp.data",
"web-shells-php.data",
"windows-powershell-commands.data",
}
Known basenames (21 catalog assets). Keep sorted.
Functions ¶
func Available ¶
func Available() bool
Available reports whether the embed pack loaded at least one .data file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.