Files
openwaf/scripts
Pavlo Ratushnyi d871d5791b The redirect target an edge cannot send is now refused by the shipped image, not only by the test host
OPEN-21's validator had never been driven from the image: the compose
gate wrote a valid redirectTo and asserted the 301, and never once sent
a CRLF, a javascript: or a relative target. Six assertions close that —
400 for each shape, the refusal naming the field, zero rows written for
either address, and both addresses still reaching the upstream
afterwards, which is what "no half-blocked visitor" means when the
block list is read by the next request rather than this one.

Two harness traps found on the way and written into the script: under
set -o pipefail, curl | grep -q reports failure because grep exits on
the first match and curl dies of SIGPIPE — the assertion went red about
a body that said exactly the right sentence; and a case pattern ending
in *) closes an enclosing command substitution, so the first rewrite
printed the rest of the line as the value under test.
2026-10-02 18:37:34 +02:00
..