Files
clawdbot/docs
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-10 05:14:09 +01:00
2026-01-13 04:41:01 +00:00
2026-01-24 04:03:07 +00:00
2026-01-25 03:24:44 +00:00
2026-01-25 10:40:27 +00:00
2026-01-25 11:26:30 +00:00
2026-01-18 06:39:26 +00:00
2026-01-10 20:05:22 +01:00
2026-01-23 05:47:16 +00:00
2026-01-25 14:08:20 +00:00
2026-01-25 01:49:53 +00:00
2026-01-25 14:08:20 +00:00
2026-01-25 02:30:09 +00:00
2026-01-04 14:38:51 +00:00
2026-01-25 10:40:27 +00:00
2026-01-23 02:51:33 +00:00
2026-01-25 00:23:24 +00:00