Files
openclaw/src
Jamieson O'Reilly 6aec34bc60 fix(gateway): prevent auth bypass when behind unconfigured reverse proxy (#1795)
* fix(gateway): prevent auth bypass when behind unconfigured reverse proxy

When proxy headers (X-Forwarded-For, X-Real-IP) are present but
gateway.trustedProxies is not configured, the gateway now treats
connections as non-local. This prevents a scenario where all proxied
requests appear to come from localhost and receive automatic trust.

Previously, running behind nginx/Caddy without configuring trustedProxies
would cause isLocalClient=true for all external connections, potentially
bypassing authentication and auto-approving device pairing.

The gateway now logs a warning when this condition is detected, guiding
operators to configure trustedProxies for proper client IP detection.

Also adds documentation for reverse proxy security configuration.

* fix: harden reverse proxy auth (#1795) (thanks @orlyjamie)

---------

Co-authored-by: orlyjamie <orlyjamie@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-01-25 15:08:03 +00:00
..
2026-01-18 08:54:00 +00:00
2026-01-25 13:20:41 +00:00
2026-01-25 12:22:36 +00:00
2026-01-25 12:22:36 +00:00
2026-01-21 23:05:11 +00:00
2026-01-24 03:46:27 +00:00
2026-01-24 10:48:33 +00:00
2026-01-21 05:34:53 +00:00
2026-01-25 12:22:36 +00:00
2026-01-25 06:37:39 +00:00
2026-01-25 12:22:36 +00:00
2026-01-25 12:22:36 +00:00
2026-01-24 10:48:33 +00:00
2026-01-21 01:58:47 +00:00
2026-01-18 19:34:21 +00:00
2026-01-14 15:02:19 +00:00
2026-01-18 03:55:14 +00:00