Count the client registration limit in fluentcms.rate_limit.refused

未关闭 适合新手
#3,552 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
62/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp

调研方向

从 DynamicClientRegistration 开始,其中 ClientRegistrationLimiter.TryAcquire 的拒绝会返回 429 和 LimitErrorCodes.RateLimited。然后找到为其他六个策略记录 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 分钟
30 天内合并 PR
425

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

fluentcms/FluentCMS 的其他 Issue

查看 fluentcms/FluentCMS 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。