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 ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 1週間以上 初心者へのやさしさ 10/100
CodingRule/SixM#12 ·
-
enhancement help wanted hosting
難易度 5/5 1週間以上 初心者へのやさしさ 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 1週間以上 初心者へのやさしさ 20/100
CodingRule/SixM#6 ·
CodingRule/SixM の issue をすべて見る
似ている 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 日以内に返信