1 Commits
Author SHA1 Message Date
clawbot be370bc8cf Core Rule Set: gitea's ordinary requests pass by default (closes #198)
check / check (push) Failing after 3m17s
The eighth change, internal/waf/gitea.conf, has the fields where gitea
sends a search, a file name or a branch name skip the rules that refused
ordinary gitea requests, on gitea's paths only. Referer skips 944130 too.
A registry's layer reuse skips 932260 on from, the seventh change.

The new setting SWWAF_CORE_RULE_SET_EXCLUSIONS_FILE loads an operator's
own exclusions before the Core Rule Set's rules. A set file that cannot
be read, does not parse or names smallwebwaf's own ids stops the start
in every mode.

A test sends the recorded gitea requests at the defaults, none refused,
and three attacks, all refused.

Model: opus-5-5
2026-11-07 02:17:34 +00:00
+2 -1
View File
@@ -273,7 +273,8 @@ func New(params Params) (*CoreRuleSet, error) {
} }
} }
text := fmt.Sprintf(directives, params.ParanoiaLevel, body, exclusions, giteaExclusions) text := fmt.Sprintf(directives, params.ParanoiaLevel, body, exclusions,
giteaExclusions)
if len(params.DisabledRules) > 0 { if len(params.DisabledRules) > 0 {
ids := make([]string, len(params.DisabledRules)) ids := make([]string, len(params.DisabledRules))