Count the client registration limit in fluentcms.rate_limit.refused

オープン 初心者向け
#3,552 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp

調査の方向性

DynamicClientRegistration から始めてください。ここでは ClientRegistrationLimiter.TryAcquire による拒否が LimitErrorCodes.RateLimited とともに 429 を返します。そのうえで、他の6つのポリシーについて fluentcms.rate_limit.refused が記録されている箇所を見つけてください。その箇所に client-registration というポリシー値を追加します。registrationsPerHour を超えるテストで、そのポリシー名の下にカウンターが表示されれば完了です。仕様書 4.15 とリリースノートにも新しい値を反映する必要があります。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
567
フォーク
107
平均マージ
2時間 35分
マージ済み PR(30日)
425

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fluentcms/FluentCMS のほかの issue

fluentcms/FluentCMS の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。