Count the client registration limit in fluentcms.rate_limit.refused

Đang mở Phù hợp với người mới
#3,552 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/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
backend, observability

Hướng nghiên cứu

Bắt đầu từ DynamicClientRegistration, nơi việc từ chối của ClientRegistrationLimiter.TryAcquire trả về 429 với LimitErrorCodes.RateLimited, sau đó tìm vị trí ghi nhận fluentcms.rate_limit.refused cho sáu chính sách còn lại. Thêm giá trị chính sách client-registration tại vị trí đó. Việc hoàn thành khi một kiểm thử vượt quá registrationsPerHour hiển thị bộ đếm dưới tên chính sách đó. Đặc tả 4.15 và ghi chú phát hành cũng cần giá trị mới.

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

Mô tả

area:operations type:feature

Found in the review of #3550 (#3385).

Problem

DynamicClientRegistration answers 429 with LimitErrorCodes.RateLimited when ClientRegistrationLimiter.TryAcquire refuses (the registrationsPerHour limit), but nothing records it in fluentcms.rate_limit.refused, so only the six policies of #3385 are counted. A client that floods /connect/register is refused without the counter moving.

Proposal

Record it under a new fluentcms.policy value such as client-registration, and add the value to spec 4.15 and the release note.

Acceptance

  • A registration refused by the limit counts under its own policy name
  • A test that exceeds registrationsPerHour

Follows #3550.

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

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.