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

Đang mở
#3,286 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
observability, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C#
Star
569
Fork
107
Merge trung bình
2 giờ 49 phút
Pull request đã merge (30 ngày)
397

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fluentcms/FluentCMS

Tất cả issue của fluentcms/FluentCMS

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.