Skip to content

fix: drop the per-IP Caddy rate limit on static assets - #10200

Closed
jixua wants to merge 1 commit into
makeplane:previewfrom
jixua:claude/busy-cohen-a43b9c
Closed

jixua wants to merge 1 commit into
makeplane:previewfrom
jixua:claude/busy-cohen-a43b9c

Conversation

@jixua

@jixua jixua commented Nov 5, 2026 •

Copy link
Copy Markdown

Description

Remove the per-client-IP rate limit that the web and admin Caddyfiles apply to static asset requests.

The limit allowed 300 requests per minute per IP, but a single workspace page loads several hundred JS chunks at once. Opening one page used up the whole budget, and every request after that came back as HTTP 429, so the page never rendered. The same rule is shared by the admin build, which is served from /god-mode, so both Caddyfiles drop it.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

  • Open a workspace and confirm the page renders instead of failing with HTTP 429.
  • Reload the same workspace several times in a row and confirm none of the reloads is rejected.
  • Open the instance admin at /god-mode and confirm it loads as well.

References


Session: https://claude.ai/code/session_01UqN9B6k8r4Vtf2YhH3zDsC

Summary by CodeRabbit

  • Changes
    • Requests to the admin and web sites are no longer subject to the previous limit of 300 requests per minute per client IP.
    • Static asset requests on the web site are no longer subject to that configured rate limit.

A workspace page pulls hundreds of JS chunks at once, so the 300 requests per minute limit answered the owner with 429.
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The admin and web Caddy configurations remove the per-client-IP rate limit for static requests, which allowed 300 requests per minute.

Changes: Static request limit removal

Layer / File(s) Summary
Remove static request limits
apps/admin/caddy/Caddyfile, apps/web/caddy/Caddyfile
Both configurations remove the static rate-limit zone and the directive that ordered rate limiting before file_server.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related issues

Suggested labels: 🛡️security

Merge Risk: Minimal · up to ee4ee

The web and admin configurations remove the request limit responsible for reported HTTP 429 responses during asset loading. No merge-blocking issue is identified; normal configuration and page-loading checks remain appropriate.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: removing the per-IP Caddy rate limit on static assets.
Description check Passed The description explains the cause, affected Caddyfiles, user impact, change scope, bug-fix classification, and test scenarios. Screenshots and references are optional and can remain empty.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 833bfd55-1c01-4da0-b9b6-8011ef50d05d
Commits

Reviewing files that changed from the base of the PR and between 618d0eb and ee4eefb.

Files selected for processing: 2

  • apps/admin/caddy/Caddyfile
  • apps/web/caddy/Caddyfile

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant