Skip to content

Rate Limiter#36

Merged
hayesZach merged 20 commits intomasterfrom
feature/ratelimit
Feb 13, 2026
Merged

Rate Limiter#36
hayesZach merged 20 commits intomasterfrom
feature/ratelimit

Conversation

@hayesZach
Copy link
Copy Markdown
Collaborator

@hayesZach hayesZach commented Feb 11, 2026

Closes CSF-1008
Closes CSF-1009


Note

Medium Risk
Touches request handling for core API routes and introduces enforcement that can block legitimate traffic if limits/key extraction are misconfigured, plus optional proxy-trust behavior that affects client IP attribution.

Overview
Adds an in-memory rate limiting middleware (ratelimit) based on API key or client IP, returning 429 with standard X-RateLimit-* headers (and Retry-After) and introducing new errors.Limiter/errors.RateLimited responses.

Applies API-key throttles to marketplace key management and reversals endpoints with route-specific limits, and adds optional TrustProxy config to honor Cloudflare’s CF-Connecting-IP header via new middleware.CloudflareIP when enabled. Includes dependency update (go-limiter) and comprehensive rate limit tests.

Written by Cursor Bugbot for commit 688fda8. This will update automatically on new commits. Configure here.

@hayesZach hayesZach self-assigned this Feb 11, 2026
@hayesZach hayesZach added the Enhancement New feature or request label Feb 11, 2026
@linear
Copy link
Copy Markdown

linear bot commented Feb 11, 2026

@hayesZach hayesZach marked this pull request as ready for review February 11, 2026 21:50
@hayesZach hayesZach requested a review from Step7750 February 11, 2026 23:56
@hayesZach hayesZach requested a review from Step7750 February 12, 2026 20:33
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@hayesZach hayesZach merged commit 3fe2207 into master Feb 13, 2026
2 checks passed
@hayesZach hayesZach deleted the feature/ratelimit branch February 13, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants