Open i5-650 opened 3 weeks ago
Update:
I figured out that it's linked to the issue #280.
If you simply disable the body processing (SecRequestBodyAccess Off
), it works fine.
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 1MBand:
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 1MBSteps 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.