Closed BurningDog closed 1 year ago
@BurningDog I had this issue too. It looks like xcaddy
is pulling in the latest released version of coraza-caddy and that version doesn't have support for the built in rule set. You can force xcaddy
to pull from master with this command:
xcaddy build --with github.com/corazawaf/coraza-caddy@master
I did not have to specify the --with github.com/corazawaf/coraza-coreruleset
@BurningDog could you try what @ameyer8 suggests?
Ping @BurningDog
This issue has been open 30 days waiting for feedback. Remove the stale label or comment, or this will be closed in 14 days.
any movement on this?
This issue was closed because it has been inactive for 14 days since being marked as stale.
Apologies for the long delay in my response - yes, the suggestion at https://github.com/corazawaf/coraza-caddy/issues/63#issuecomment-1560106130 worked. Thanks @ameyer8!
I'm trying to use Coraza and the OWASP ruleset with Caddy 2.6.4 (this version of Caddy as it's the latest stable, and I'm using API Platform and its Caddyfile).
I need to use the following lines to build caddy:
...otherwise the
conf
files mentioned in the README don't exist anywhere:@coraza.conf-recommended
,@crs-setup.conf.example
,@owasp_crs/*.conf
. I manually copy those files to the correct locations:My
Caddyfile
is as follows:I've used
caddy fmt --overwrite
to correctly format theCaddyfile
.However, when I run
caddy
I get this error:However, if I comment out the
load_owasp_crs
directive, then caddy runs. Is this expected?[Edit: after testing, the WAF is running, but I'm not sure how to check that the OWASP core rule set is running too?]