-
Hello, I'm currently utilizing Coraza with Caddy! Within an application protected by coraza, there's an API designated for file uploads. However, the WAF (Web Application Firewall) is significantly impacting this service. For information, file uploads are limited to a maximum size of 500MB. Conducting benchmarks using 92MB files revealed a considerable increase in response time from caddy, extending up to approximately 2 minutes. This delay has prompted me to question the necessity of employing a WAF for scanning POST requests involving multipart content type data for file uploads, especially considering the performance issues encountered. Hence, my query arises: How can I exclude Coraza from scanning this specific type of request? Should this exclusion be implemented within the Caddyfile configuration or within the Coraza configuration? Regards, BBA |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
How does you config look like? Cc @M4tteoP |
Beta Was this translation helpful? Give feedback.
Hi @Barnoux,
Mind that the
ctl
actions are part of the no-disruptive actions. Because of that , in a chained rule, these actions are executed whenever the individual rule of the action is reached and matched, not when the whole rule chain is matched.I would refactor your rule as something like this: