You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a PHP application that handles image uploads to a server. The application is straightforward and primarily serves as a testbed for using Traefik and its plugins.
While integrating the Coraza plugin with Traefik, I encountered the following error: ERR Failed to read request body tx_id="MgnMwDtswTYfBQTgNZy" error="memoryLimit reached while writing" entryPointName=https middlewareName=coraza-owasp@file middlewareType=wasm routerName=php_uploader@docker if the image is bigger than 1MB
and:
DBG github.com/traefik/traefik/v3/pkg/server/service/proxy.go:100 > 500 Internal Server Error error="net/http: HTTP/1.x transport connection broken: http: ContentLength=113348 with Body length 0" If the image is smaller than 1MB
http:
middlewares:
coraza-owasp:
plugin:
coraza:
directives:
- Include @coraza.conf-recommended
- Include @crs-setup.conf.example
- Include @owasp_crs/*.conf# I tried to disable the rule that stops me
- SecRuleRemoveByTag 'OWASP_CRS/POLICY/SIZE_LIMIT'
- SecRuleEngine On
Expected result
I should have the images uploaded to my server, the .ini file is edited to allow so and it works without the Coraza middleware.
Actual result
I have this error:
ERR Failed to read request body tx_id="MgnMwDtswTYfBQTgNZy" error="memoryLimit reached while writing" entryPointName=https middlewareName=coraza-owasp@file middlewareType=wasm routerName=php_uploader@docker
or
DBG github.com/traefik/traefik/v3/pkg/server/service/proxy.go:100 > 500 Internal Server Error error="net/http: HTTP/1.x transport connection broken: http: ContentLength=113348 with Body length 0"
And the server returns a 500.
The text was updated successfully, but these errors were encountered:
Hey @i5-650, reading about Traefik and Coraza middleware v0.2.2 makes me think that the issue belongs to the http-wasm connector (here is the proxy-wasm one, similar names, but different ABI and Coraza connector): https://github.com/jcchavezs/coraza-http-wasm
Description
I'm developing a PHP application that handles image uploads to a server. The application is straightforward and primarily serves as a testbed for using Traefik and its plugins.
While integrating the Coraza plugin with Traefik, I encountered the following error:
ERR Failed to read request body tx_id="MgnMwDtswTYfBQTgNZy" error="memoryLimit reached while writing" entryPointName=https middlewareName=coraza-owasp@file middlewareType=wasm routerName=php_uploader@docker
if the image is bigger than 1MB
and:
DBG github.com/traefik/traefik/v3/pkg/server/service/proxy.go:100 > 500 Internal Server Error error="net/http: HTTP/1.x transport connection broken: http: ContentLength=113348 with Body length 0"
If the image is smaller than 1MB
Steps to reproduce
The PHP app:
and the following labels:
The Traefik:
v3.1.2 (image id: dfdbdfae3fb3)
The Coraza middleware:
v0.2.2
Expected result
I should have the images uploaded to my server, the
.ini
file is edited to allow so and it works without the Coraza middleware.Actual result
I have this error:
or
And the server returns a 500.
The text was updated successfully, but these errors were encountered: