-
Notifications
You must be signed in to change notification settings - Fork 78
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
latest nginx-alpine tag is not working properly #326
Comments
Thanks for the report @fichte. Unfortunately, I don't see any obvious issues when I run the image locally. If you could provide your configuration for your Portainer setup, I could try to replicate it. Have you tried using the regular |
I just had the same kind of problem for me. I was not running it on Portainer but on a Kubernetes Cluster. I was also just using the The Problem was for me that, if the Response Content is above a Size (can't really tell what the minimum is, but should be above 4000 Characters), the First ~1080 Characters get "corrupted" in the sense that they will be some later content in there. Thats result for example with a JSON response that wont start with There was no difference in result if the response was from the modsecurity container itself (static file serving) or a reverse-proxy configuration. |
just open the developer console and go to http://localhost i just added portainer and removed the comments from the original docker-compose.yaml working docker-compose.yml with previous tag
non working docker-compose.yml with latest version
|
I can confirm above mentioned behavior as described by @Serverfrog with latest |
Thank you all for your reports. We'll try to reproduce the issue. The only thing i can think of at the moment that could have caused this is the QEMU update we did. |
I can confirm the issue. It really does look like some kind of memory corruption / memory offset computation issue. I strongly suspect that we're seeing an issue with QEMU. I will upgrade to v9.2.0 and hope that that fixes the issue. |
i tried both linux/arm64 and linux/amd64 |
@theseion when do you expect to release a fixed version? |
Unfortunately, I haven't yet been able to pinpoint the issue. I'm working on a fix and hope to get it done within the next couple of hours, but it might be tomorrow, depending on what I (don't) find. |
@theseion maybe you can share some of your findings :) it looks really suspicious to me, maybe there is something bad happening within the dependencies? |
What I can say up to now:
|
it is definately the modsecurity module, i deactivated it inside the running container and reloaded the nginx process. then everything works properly. |
Thanks. I've been slowly coming to the same conclusion. |
at compile stage i see some "fatal" stuff, dont know if they are normal at that point
|
Guys, is it possible that the image uses the latest (and unreleased) ModSecurity-nginx connector? Just saying that has a bug which produces (I risk) the same behavior. See ModSecurity-nginx/336. If you use the unreleased version, please do not do that. |
Yep, that's it. We're using the main branch. I'll fix that dependency tomorrow morning. Off to bed now. Thanks for the help. |
Though this is a different symptom but I'm afraid the root cause (broken Nginx connector) is the same. |
in the following example this is a small docker stack with owasp/modsecurity-crs as proxy and portainer behind owasp/modsecurity-crs
the latest tag owasp/modsecurity-crs:4.10.0-nginx-alpine-202501270601 produces weird errors
the previous tag owasp/modsecurity-crs:4.10.0-nginx-alpine-202501050801 works perfectly
it looks suspicious to me. both image are from the public docker registry. i dont have the time to debug this. i can assure that the config is exactly the same.
The text was updated successfully, but these errors were encountered: