The files of /admin count against the pre-authentication rate limit

Đang mở
#3,452 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
backend, devops

Hướng nghiên cứu

Start with src/FluentCMS.Core/Api/Common/PreAuthRateLimitMiddleware.cs and trace how requests are classified, then inspect the admin surface’s static file routes and the related host configuration docs. Add or adjust coverage for 40 cold admin loads while confirming API and hosted page requests remain limited. Update docs/host-configuration.md to describe what the pre-authentication limit covers.

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

Mô tả

area:host type:feature

Problem

Every request to the host passes the pre-authentication limiter, by address (src/FluentCMS.Core/Api/Common/PreAuthRateLimitMiddleware.cs, lines 53 to 67), and the endpoints of the admin are FluentCMS endpoints, so they count. A cold load of the admin is about 230 requests against 6000 a minute per address (#3178, measured in the review of #3191; not measured again). An office behind one address meets 429 when some thirty people load the admin within a minute after a deploy. A-47 turns the admin on by default.

Proposal

Leave the static files of a surface out of the pre-authentication limit, or give them a limit of their own: a fingerprinted file is cached for good after the first load, and it reads nothing of the instance. index.html and config.json may stay under the limit.

Acceptance

  • Forty cold loads of the admin from one address within a minute answer no 429
  • A request to the APIs and to the hosted pages is limited as before
  • docs/host-configuration.md says what is limited

From the review of #3191 (#3178). A-46 documents FluentCms:RateLimits:PreAuth:PermitLimit until it is merged. Size: S.

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

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.