-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updates to CRS v4.0.0-rc2, sets equal BodyLimits in default configs #243
Conversation
da7df91
to
31b7247
Compare
|
||
SecRequestBodyNoFilesLimit 131072 | ||
# SecRequestBodyNoFilesLimit 131072 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think SecRequestBodyNoFilesLimit
is not implemented Coraza side, we should at least comment it out, not letting users think that it is enforced.
SecRequestBodyLimit 13107200 | ||
|
||
SecRequestBodyInMemoryLimit 131072 | ||
SecRequestBodyInMemoryLimit 13107200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change connected to the 1gb?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it is about:
- Sets
RequestBodyLimit
equal toBodyInMemoryLimit
. As stated in Coraza itself: TinyGo MemoryLimit should be equal to Limit
Not being able to split the request between memory and then into a file after a certain limit, for coraza-proxy-wasm the two limits should be the same
Elaborating better the following point:
The issue currently is that in the default configuration, we provide:
Sending a request >Memorylimit leads to reaching the I think that:
|
…, adds a warning about production usage
I aligned the limits to the lower threshold: both |
PTAL @jcchavezs @anuraaga. Also, because the default config and embedded rules changed, I would release |
Just reworded the two failing tests linking to the broader discussion in the Coraza repo. I'm going to merge and tag! 🚀 |
This PR:
934131-5
,934131-7
.@crs-setup-demo-conf
in favour of@crs-setup-conf
.@crs-setup-conf
is already meant to be specifically edited for coraza-proxy-wasm (early_blocking enabled), two config files providing the same configuration would just be confusing.@demo-conf
has some differences compared to the original coraza.conf (first of all enabling the Engine and not keeping it in DetectionOnly mode). This PR does not deprecate it.RequestBodyLimit
equal toBodyInMemoryLimit
. As stated in Coraza itself: TinyGo MemoryLimit should be equal to Limit