-
Notifications
You must be signed in to change notification settings - Fork 88
Description
Hi,
I'm running an app on OpenShift and I'm trying to move from a vanilla nginx image nginx:1.29.3 to owasp/modsecurity-crs:4.11.0-nginx-202502011102.
My setup is OpenShift route -> nginx proxy -> frontgateapp
I've only got nginx in there because I want to have "nginx + modsecurity" as this aligns to the opensearch setup I have which is configured to receive nginx logs.
In my nginx deployment I have this basic config (/etc/nginx/conf.d/default.conf ):
server {
listen 8080;
listen [::]:8080;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / {
proxy_pass http://frontgateservice.cargo-cats.svc.cluster.local:8081/;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
And when I proxy through it, I can load my webpage:
I'm running on OpenShift, and so I can just amend my route to point to either my "nginx service" or my "modsecurity service" which both proxy to the frontgateservice. When I point to "modsecurity service" and try and load my webpage using the inbuilt default.conf I only ever get (about 99% of the time) textual representative of same of the page:
===
===
and even when I overwrite the default.conf to use the same server configuration as on my "vanialla nginx" pod, I am very rarely able to load the actual webpage. About one in 25-50 attempts results in correct webpage load.
I've tried all sorts of buffer changes etc on the modsecurity image, and yet I cannot get the page to load. This is the "frontendservice" I'm trying to load: https://github.com/Contrast-Security-OSS/cargo-cats/tree/main/services/frontgateservice.
Thanks in advance for any help you can provide.