Load optional local WAF rules before CRS #16
Loading…
Reference in a new issue
No description provided.
Delete branch "waf-extra-rules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
CENTINELA_WAF_EXTRA_RULES: a file of Coraza directives the embedded WAF loads after the virtual patches and before the CRS rules, so local exclusions can live in deployment config.Why: about 980 of 1,363 refusals over 3 days (shunned clients excluded) were Forgejo views of .gitignore, Dockerfile, .dockerignore, php.ini and .htaccess, which CRS 930130 flags and the model then blocks as path_traversal. gitops-infra will ship the exclusion as a ConfigMap.
Tests: with the Forgejo exclusion loaded, 930130 no longer matches git.colibrisec.org///src|raw/... but still matches the same path on another host and /.htaccess on git.colibrisec.org. A rule that fails to parse makes New fail. README documents the setting with the example.
🔎 ojo scan results
No findings.