chore: bump global API rate limit from 100 to 300 req/min#312
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Raises the globally configured Fastify rate limit for the API server to reduce legitimate 429s for users sharing an egress IP (e.g., corporate NAT/VPN/CGNAT), while leaving stricter per-route limits (like /onramp/token) intact.
Changes:
- Increased the global per-IP rate limit from 100 to 300 requests per minute.
- Kept the existing 1-minute time window and Redis-backed limiter configuration unchanged.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
aristidesstaffieri
approved these changes
May 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps the global per-IP rate limit on the main API server from 100 req/min to 300 req/min (
src/route/index.ts:125). The/onramp/tokenroute-level limit (20/min) is unchanged.Rationale
FREIGHTER-DMQ("No error message" on/index.html) has been firing continuously since 2026-04-25 — its alert rule (≥10 errors/hr) trips multiple times per day, each with 100–141 accumulated events. These are overwhelmingly 429s from the extension hitting the global limit.FREIGHTER-DMQdoesn't quiet within a day or two after deploy, the right next step is per-user/API-key bucketing rather than continuing to widen the IP bucket.Test plan
FREIGHTER-DMQevent rate in Sentry — expect a sharp drop🤖 Generated with Claude Code