Option to trust X-Forwarded-For behind a reverse proxy
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- rust
- 領域
- networking
研究方向
Start by locating GetPlayerEndpoint, the ip: identifier handling, and the server configuration code that reads server.cfg; trace how connection headers reach those entry points. Add coverage for a trusted proxy, an untrusted source, and a two proxy chain, then update docs/hosting.md. The linked open pull request #13 indicates this work is already underway.
由索引模型根據 Issue 內容生成。
描述
Behind a TLS reverse proxy every player appears to connect from the proxy's address, because the server does not read X-Forwarded-For. GetPlayerEndpoint and the ip: identifier are then the same for everyone.
Wanted
- A
server.cfgsetting listing trusted proxy addresses, off by default. - When the connection comes from a trusted proxy, take the client address from
X-Forwarded-For(the right-most address not in the trusted list). - Never trust the header from any other source: it is trivially forged.
Done when
Tests cover a trusted proxy, an untrusted source sending the header, and a chain of two proxies. docs/hosting.md is updated.
- 主要語言
- Rust
- 星號
- 3
- 分支
- 1
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CodingRule/SixM 的其他 Issue
-
help wanted in-game-client needs-game-copy
難度 1/5 1 小時以內 新手友好度 70/100
CodingRule/SixM#1 ·
-
in-game-client tracking
難度 5/5 一週以上 新手友好度 10/100
CodingRule/SixM#12 ·
-
enhancement help wanted hosting
難度 5/5 一週以上 新手友好度 30/100
CodingRule/SixM#9 ·
-
enhancement help wanted networking
難度 4/5 3-5 天 新手友好度 68/100
CodingRule/SixM#7 ·
-
UDP transport未關閉enhancement help wanted networking
難度 5/5 一週以上 新手友好度 20/100
CodingRule/SixM#6 ·
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
autofixer: follow-up
難度 2/5 1-3 小時 新手友好度 78/100
tursodatabase/turso#12531 ·
維護者通常 1 天內回覆
-
bug help wanted ui
難度 2/5 1-3 小時 新手友好度 82/100
userFRM/egui-charts#4292 ·
維護者通常 1 天內回覆
-
Issue-Bug Need-Review
難度 1/5 1-3 小時 新手友好度 85/100
PowerShell/DSC#1832 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆