[feature]: Make frontend static asset rate limits configurable through environment variables
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Is there an existing issue for this?
- I have searched the existing issues
This proposal is related to the static asset rate-limit problem discussed in issue [#9977], [#10341] and pull request [#10200]).
Summary
Make the per-client-IP rate limits applied to static assets by the Web and Admin frontend Caddy servers configurable through environment variables, with the existing default of 300 requests per minute retained.
Problem
Plane currently applies a fixed rate limit of 300 requests per minute to static asset requests, using the client's IP address as the rate-limit key.
This can cause HTTP 429 responses during entirely normal application use. In particular, loading or refreshing a workspace page can generate several hundred individual JavaScript and other static asset requests.
The limit is shared by all browser sessions originating from the same public IP address. Consequently, multiple users, devices or browser sessions behind the same NAT gateway can collectively exhaust the allowance.
This is particularly problematic for self-hosted installations, where administrators may have several active sessions or users sharing a public IP address.
The resulting behaviour is that a full page load or refresh can fail with HTTP 429 responses, even though normal application interaction after the page has loaded works correctly.
Proposed solution
Expose the static asset rate limits as configurable environment variables in the self-hosted deployment configuration:
WEB_ASSET_RATE_LIMIT=300
ADMIN_ASSET_RATE_LIMIT=300
WEB_ASSET_RATE_LIMIT: Maximum static asset requests per client IP per minute for the main Web frontend.ADMIN_ASSET_RATE_LIMIT: Maximum static asset requests per client IP per minute for the Admin (God Mode) frontend.
The existing value of 300 requests per minute should remain the default when the variables are not specified.
The values should be passed into the respective frontend Caddy containers and used by their Caddy rate-limit configurations.
The configuration should be documented in the self-hosted deployment environment-variable documentation.
Why should this be worked on?
A fixed limit cannot accommodate the different deployment patterns and usage characteristics of self-hosted installations.
For example, installations with multiple users sharing a public IP address, administrators using several browser sessions, or deployments with particularly large frontend bundles may legitimately exceed the current limit.
Making the limits configurable would:
- Preserve the existing default security behaviour.
- Allow administrators to increase the limits where legitimate usage requires it.
- Avoid unnecessary HTTP 429 responses during normal application loading.
- Remove the need for administrators to maintain custom Caddyfiles or modify frontend container configurations.
- Provide a straightforward, supported configuration mechanism for self-hosted deployments.
This proposal does not seek to remove rate limiting or change the recommended default. It simply gives administrators control over a setting that currently cannot be adjusted without modifying the supplied frontend configuration.
- 主要言語
- TypeScript
- スター
- 63k
- フォーク
- 6.5k
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 70
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
makeplane/plane のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
[bug]: Comment external_id is deduplicated per project instead of per work item対応中かも @MishraTanishq619 が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
makeplane/plane#10195 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Missing optional chaining on actor_details and reaction_items in apps/space reactions and votes対応中かも @ghazy2001 が 29 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
makeplane/plane#10111 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
makeplane/plane#10082 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
makeplane/plane の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
frontend testing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
vendrabuck/HERD#1588 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue priority: low
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
art-audio
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100