An untrusted proxy puts every client in one rate-limit bucket without warning

Offen
#3,286 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp

Rechercherichtung

Start with ApiCaller.cs near line 90 and trace the forwarded-header configuration, startup report, and rate-limit policies described in the issue. Check how untrusted X-Forwarded-For and X-Forwarded-Proto headers are handled and how existing warnings and startup entries are produced. Done means one Warning per process and a startup-report entry for such requests; the proposal also calls for refusal metrics by policy.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:host area:operations type:feature

Problem

The pre-auth, auth, health and anonymous Delivery limits partition by Connection.RemoteIpAddress (ApiCaller.cs:90). Forwarded headers are off by default and, when on without known proxies, trust only loopback; the framework logs the ignored header at Debug. Behind nginx, Traefik or an ingress every user shares the proxy's address, so sign-ins and refreshes are limited to 20 a minute for the whole site.

Proposal

Log a Warning once per process, and add a startup-report entry, when a request carries X-Forwarded-For or X-Forwarded-Proto from an untrusted address; add rate-limit refusal metrics by policy.

Acceptance

  • The misconfiguration is reported at Warning and in the startup report

Found in the code review of 17 Nov 2026 (C2).

Vorherrschende Sprache
C#
Sterne
569
Forks
107
Ø Merge
2 Std. 49 Min.
Gemergte PRs (30 T.)
397

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fluentcms/FluentCMS

Alle Issues in fluentcms/FluentCMS

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.