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

Open
#3,286 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp

Research direction

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.

Written by the indexing model from the issue text.

Description

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).

Dominant language
C#
Stars
569
Forks
107
Avg merge
2h 49m
Merged PRs (30d)
397

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fluentcms/FluentCMS

All issues in fluentcms/FluentCMS

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.