Option to trust X-Forwarded-For behind a reverse proxy

オープン
#10 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@shiwng がすでに取り組んでいます。

2026年11月26日 から。

  • #13 @shiwng による — オープン

評価

難易度
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 の本文から書いたものです。

説明

enhancement good first issue hosting

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.cfg setting 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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodingRule/SixM のほかの issue

CodingRule/SixM の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。