openvibers/openvibe.network Commits

Network: nginx refuses /internal/ and /metrics case-insensitively (#111)

OP OpenVibers committed 10 Oct 2026 · c4a267a938 · 1 file, +1 −1

nginx config only. Express routes case-insensitively, so a case variant such as `/Internal/events` or `/METRICS` slipped past the case-sensitive `location /internal/ { return 404; }` and `location = /metrics { return 404; }` blocks and reached the app. Those paths were still guarded in the app (the Events signature, the loopback check on metrics). Both blocks are now `location ~* ^/internal(/|$)` and `location ~* ^/metrics(/|$)`. The independent security reviews of 2026-10-09/10 found this in several services; this applies it network-wide.

Changes

ddiff --git a/deploy/nginx/openvibe.network.conf b/deploy/nginx/openvibe.network.conf
iindex ef0eaa5e..36828e3f 100644
---- a/deploy/nginx/openvibe.network.conf
++++ b/deploy/nginx/openvibe.network.conf
@@@ -58,7 +58,7 @@ server {
add_header Referrer-Policy strict-origin-when-cross-origin always;
# Prometheus metrics are for loopback scrapers only (the app also 404s any proxied request).
-- location = /metrics { return 404; }
++ location ~* ^/metrics(/|$) { return 404; }
# ── Token endpoint (its own limit; 429 when exceeded, as the app answers) ──
location = /oauth/token {