Skip to content

feature: a panel behind a reverse proxy can trust it to say who the visitor is - #775

Merged
lukepolo merged 1 commit into
mainfrom
feature/trusted-proxies
Nov 10, 2026
Merged

lukepolo merged 1 commit into
mainfrom
feature/trusted-proxies

Conversation

@lukepolo

Copy link
Copy Markdown
Contributor

Behind an owner's own reverse proxy, Traefik replaces X-Forwarded-For with the proxy's address, so the panel and anything behind it see every request as coming from the proxy.

TRUSTED_PROXIES in overlays/config/traefik-config.env lists the addresses (or ranges) whose X-Forwarded-* Traefik keeps, on both ports. Empty by default, so nothing changes for existing installs. An entry that isn't an address or range, or is /0, stops the install.

On 5stack.gg this is why the Internet exposure check reads "private address" for every install: the cloud sees the proxy, not the caller.

Tested:

  • tests/scripts/traefik_install_test.sh: values and validation
  • tests/gateway/fresh_install_test.sh: an unlisted sender's header is dropped, a listed one's is kept, on a real cluster (CI)
  • The pinned Traefik image in Docker: listed sender → 203.0.113.7, 172.70.1.1, <proxy>; unlisted → <sender>

…isitor is

TRUSTED_PROXIES in traefik-config.env lists the addresses whose
X-Forwarded-* Traefik keeps. Without it every request behind a reverse
proxy arrives as the proxy's address.
@lukepolo
lukepolo merged commit 359564a into main Nov 10, 2026
8 checks passed
@lukepolo
lukepolo deleted the feature/trusted-proxies branch November 10, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant