Files
openwaf/scripts
Pavlo Ratushnyi 12ccb55423 The compose scenes now name the policy they stand on, and prove their sources
The ban scene failed on the first Linux rehearsal and passed on the macOS
host, and the difference was not the platform: the read scene above it drops
policy_settings and recreates it empty, so once the reload succeeds against
the empty table the operator's overrides are gone and the policy is back to
the configured defaults — streakThreshold 10, trustProxyHeaders false. With
proxy headers untrusted, every "new source" in the write and ban scenes is
the same docker bridge address, the ban is never attempted, and the log line
the scene waits for never appears. Which policy is in force after that
restore is a timing question, so the scene passed on one machine and failed
on the other for a reason that had nothing to do with what it asserts.

Both scenes now PUT the policy they depend on before they generate traffic,
and both prove the sources they claim were seen are really in the live
streak map — three distinct keys in the write scene, the scanner's own key in
the ban scene — so the scene cannot pass by counting one address three times.

The streaks fetch is polled rather than sampled once: the first attempt right
after a burst answered a completely empty body while the next answered
complete, and an assertion on one instant is not a contract.

Gate on the host at this commit: 74 passed, 0 failed (was 72 + the 2 new).
2026-10-02 09:46:05 +02:00
..