DEV-1989 ALL status codes under /pgadmin4 (including 401, 499, 404, etc.)

This commit is contained in:
2025-09-10 17:08:00 +02:00
parent da8790fd21
commit eff610142f

View File

@@ -1,6 +1,11 @@
[Definition]
# Match either x_forwarded_for (preferred) or remote_addr
# ✅ Match any 4xx status (including 401, 499) for all paths
failregex = ^.*"x_forwarded_for":"<HOST>".*"status":4\d\d.*$
^.*"remote_addr":"<HOST>".*"status":4\d\d.*$
ignoreregex = ^.*"request_uri":"\/(?:stub_status|health\/system|health\/worker|pgadmin4(?:\/|$)|\.well-known\/acme-challenge\/|.*\.(?:css|js|png|jpg|jpeg|gif|svg|ico|webp|woff2?))".*$
# ❌ Ignore:
# - ALL status codes under /pgadmin4 (including 401, 499, 404, etc.)
# - Static files and known safe URIs
ignoreregex = ^.*"request_uri":"\/pgadmin4(?:\/[^"]*)?".*$
^.*"request_uri":"\/(?:stub_status|health\/system|health\/worker|\.well-known\/acme-challenge\/[^"]*|[^"]*\.(?:css|js|png|jpg|jpeg|gif|svg|ico|webp|woff2?))".*$