[feature]: Make frontend static asset rate limits configurable through environment variables

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

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

@vihar がすでに取り組んでいます。

2026年11月17日 から。

  • #10385 @ashokram-si による — オープン

評価

この issue はまだ評価されていません。

説明

✨feature plane
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

環境構築

はじめの一歩

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

makeplane/plane のほかの issue

makeplane/plane の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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