corazawaf / coraza-spoa

EXPERIMENTAL: A wrapper around the OWASP Coraza WAF for HAProxy's SPOE filters
Apache License 2.0
82 stars 16 forks source link

HAProxy SPOA result message #21

Open sts opened 2 years ago

sts commented 2 years ago

Currently the variable returned by coraza-spoa to inform HAProxy to perform a waf block, is called fail. The term fail is confusing and should be replaced.

Looking at other modules:

sts commented 2 years ago

Redirect implemented in coraza v3, it.Action still needs exposure to haproxy.

Note: Redirect status cannot be determined by it.Status because of HAProxy short comings. Retrieving the status code by looking up a variable results in a haproxy parsing error, otherwise this works:

http-request redirect code 302 location %[var(txn.coraza.data)] if { var(txn.coraza.action) -m str redirect }