Skip to content

fix(hub): check X-Real-IP header to resolve agent's real source IP#1973

Open
svenvg93 wants to merge 1 commit intohenrygd:mainfrom
svenvg93:1965-real-ip-fix
Open

fix(hub): check X-Real-IP header to resolve agent's real source IP#1973
svenvg93 wants to merge 1 commit intohenrygd:mainfrom
svenvg93:1965-real-ip-fix

Conversation

@svenvg93
Copy link
Copy Markdown
Collaborator

@svenvg93 svenvg93 commented May 3, 2026

📃 Description

Add X-Real-IP header support to getRealIP so the systems.host column stores the agent's real source IP when the hub runs behind nginx or Traefik in a Docker bridge network setup.

closes #1965

🪵 Changelog

🔧 Fixed

  • systems.host storing Docker bridge MASQ IP (172.x.x.x) instead of the agent's real source IP when the hub runs as a Docker container behind a reverse proxy that sets X-Real-IP (e.g. nginx, Traefik)

@svenvg93 svenvg93 requested a review from henrygd as a code owner May 3, 2026 19:23
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.

[Bug]: systems.host stores Docker bridge MASQ IP instead of agent's real source IP

1 participant