openvibers/openvibe.inventory Commits

Inventory: nginx refuses /internal/ and /metrics case-insensitively (#14)

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

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/inventory.openvibe.network.conf b/deploy/nginx/inventory.openvibe.network.conf
iindex f80467c..193ae6e 100644
---- a/deploy/nginx/inventory.openvibe.network.conf
++++ b/deploy/nginx/inventory.openvibe.network.conf
@@@ -87,11 +87,11 @@ server {
}
# ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:5030/metrics) ──
-- location = /metrics { return 404; }
++ location ~* ^/metrics(/|$) { return 404; }
# ── OpenVibe.Events' delivery route: loopback only (POST /internal/events) ──
# Events posts to http://127.0.0.1:5030/internal/events directly; never proxied from outside (ADR-033).
-- location /internal/ { return 404; }
++ location ~* ^/internal(/|$) { return 404; }
# ── Pages, docs, robots.txt, sitemap, static assets ─────
location / {