Use rate limiter policy classes and drop the /api/reading path bypass

オープン
#1,604 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
66/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
api, backend, security

調査の方向性

Search for ContentRateLimiterPolicy, McpRateLimiterPolicy, the inline reading API limiter lambdas, and the global limiter's /api/reading bypass. Read the limiter registration and the reading API endpoint configuration first. Extract the reading policies as named policy classes and apply them with RequireRateLimiting; done means routed reading endpoints retain their intended limits and unrouted requests under /api/reading are no longer bypassed.

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

説明

The reading API rate limits are inline lambdas with magic numbers, and the global limiter special-cases /api/reading with a no-limiter bypass, so unrouted requests under that path are unlimited. The repo convention is policy classes (ContentRateLimiterPolicy, McpRateLimiterPolicy). Extract policies, name them accurately (GET profile currently uses a 'Write' policy), and use RequireRateLimiting/named policies instead of a path bypass.

Found during review of #1267; intentionally kept out of that PR.

主要言語
HTML
スター
8
フォーク
8
平均マージ
3時間 24分
マージ済み PR(30日)
91

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

IntelliTect/EssentialCSharp.Web のほかの issue

IntelliTect/EssentialCSharp.Web の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

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

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