corazawaf/coraza

failed to compile the directive "secrule": invalid action "proxy"

Open

#775 opened on Apr 12, 2023

 (10 comments) (0 reactions) (0 assignees)Go (333 forks)auto 404
documentationgood first issue

Repository metrics

Stars
 (3,627 stars)
PR merge metrics
 (PR metrics pending)

Description

Description

WAF config from string reports:

invalid WAF config from string: failed to compile the directive "secrule": invalid action "proxy"

Running 3.0.0-rc1.

Steps to reproduce

https://coraza.io/docs/seclang/actions/#proxy

The rules for block and redirect are parsed and enforced correctly. Proxy is unrecognized.

Expected result

I should get a filled out types.Interruption with Action: proxy and Data: url;

Actual result

The above error.

Contributor guide