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

Aberta
#10 0 comentários 0 reações 0 responsáveis Ver no GitHub

@shiwng já está trabalhando nisso.

Desde 26/11/2026.

  • #13 de @shiwng — aberto

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
rust
Domínio
networking

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Rust
Estrelas
3
Forks
1
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de CodingRule/SixM

Todas as issues de CodingRule/SixM

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.