Bridge inventory; trust X-Forwarded-For only from FN_TRUSTED_PROXY_ADDRS #248

Merged
paulhitt merged 5 commits from bridge/inventory into main 2026-10-09 21:22:12 +00:00
paulhitt commented 2026-10-09 20:48:43 +00:00 (Migrated from gitlab.com)

Adds the obfs4_bridges table and an admin-only CLI (no route reads it). The relay now believes X-Forwarded-For only when the TCP peer is in FN_TRUSTED_PROXY_ADDRS; unset trusts nobody. Docs fixed: FN_TRUSTED_PROXIES defaults to 1.

Before deploying: Traefik is pinned at 172.18.255.241 (done 2026-10-09); FN_TRUSTED_PROXY_ADDRS=172.18.255.241 must be set on the relay and relay1/2/3, or every client shares Traefik's rate-limit bucket.

🤖 Generated with Claude Code

Adds the obfs4_bridges table and an admin-only CLI (no route reads it). The relay now believes X-Forwarded-For only when the TCP peer is in FN_TRUSTED_PROXY_ADDRS; unset trusts nobody. Docs fixed: FN_TRUSTED_PROXIES defaults to 1. Before deploying: Traefik is pinned at 172.18.255.241 (done 2026-10-09); FN_TRUSTED_PROXY_ADDRS=172.18.255.241 must be set on the relay and relay1/2/3, or every client shares Traefik's rate-limit bucket. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
paulhitt (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2026-10-09 20:48:52 +00:00
paulhitt commented 2026-10-09 21:22:12 +00:00 (Migrated from gitlab.com)

mentioned in commit f11e32d0a9

mentioned in commit f11e32d0a93783cd9d3f2900bee7349e5ee889d2
paulhitt (Migrated from gitlab.com) merged commit f11e32d0a9 into main 2026-10-09 21:22:12 +00:00
Sign in to join this conversation.