Core Rule Set: WordPress's ordinary requests pass by default (closes #235)
check / check (push) Failing after 1m23s

Add the ninth change: wordpress.conf switches off, per path and field, each
rule that refused recorded WordPress 7.1.4 traffic. Add the recorded requests,
a test at the defaults and reading bodies, and list WordPress in the README.

Model: opus-5-5
This commit is contained in:
sneak committed 2026-11-09 07:03:03 +00:00
1 parent aede434f6a
commit 95b5c447ee
6 files changed
+817 -18

No files matched your search

+10 -5
View File
@@ -581,11 +581,16 @@ client's limits by tag. See "Request tags" in [`SPEC.md`](SPEC.md).
headers of every request, and no body unless `SWW_WAF_BODY_LIMIT` is set. In
front of a code forge, bodies carry what people write and publish, which the
rules take for attacks.
- `smallwebwaf` changes the Core Rule Set in eight ways so that it lets ordinary
requests to a code forge through, such as git over HTTP and sign-in through
Git Credential Manager. On gitea's own paths, its searches, file names and
branch names get through too. No setting undoes the changes; "Attack
detection" in [`SPEC.md`](SPEC.md) lists them.
- `smallwebwaf` changes the Core Rule Set in nine ways so that it lets ordinary
requests to a code forge or to WordPress through, such as git over HTTP and
sign-in through Git Credential Manager. On gitea's own paths, its searches,
file names and branch names get through too. On WordPress's own paths, its
searches and file names do. No setting undoes the changes; "Attack detection"
in [`SPEC.md`](SPEC.md) lists them.
- These apps work out of the box at the default settings, and the Core Rule Set
refuses none of their ordinary requests:
- gitea;
- WordPress.
- `SWW_CORE_RULE_SET_EXCLUSIONS_FILE` switches single rules off for an app's own
fields or paths.
- Rule files are plain text, one rule to a line, edited by hand and read again