Let named endpoints be exempt from the WAF hard block #6
Loading…
Reference in a new issue
No description provided.
Delete branch "hard-block-exempt"
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?
Problem
CENTINELA_WAF_HARD_BLOCKcannot be turned on in production. At paranoia 3, binary request bodies score far above any attack:git-upload-packon the git hostNo single threshold separates them, and
CENTINELA_BYPASS_PREFIXEScannot name/<owner>/<repo>/git-upload-pack.Change
New setting
CENTINELA_WAF_HARD_BLOCK_EXEMPT: comma-separated[host]/patternentries. Unset by default./hooks/*) the entry applies to every host. A bare host (files.example.org) exempts all of its paths.path.Matchpattern over the whole decoded path.*stays within one path segment.CENTINELA_BYPASS_PREFIXES.Tests
*not crossing a segment, host-less and bare-host entries, registry upload paths (opening POST and upload session), and rejection of bad entries.make vet,make buildandmake test(race detector) pass.Independent of #5. Merging to
mainrunsbuild-and-push, which tags and publishes the next patch version.🔎 ojo scan results
Details (7)