Labels: Backend, Stellar Wave, rate-limiting, security, api
Complexity: Medium (150)
Description
Rate limiting was added for payment link endpoints, but discovery, username lookup, profile reads, marketplace queries, and export requests remain unlimited. These are the cheapest endpoints to abuse for enumeration. Extend the existing throttler into named tiers applied across the public surface.
Acceptance Criteria
- Named rate limit tiers exist (for example public-read, search, mutation, export) with configurable limits.
- Every public endpoint is assigned a tier, enforced by a test that fails on unassigned routes.
- Limits key on API key when present and fall back to client identity otherwise.
- Exceeded limits return a consistent error body with a retry hint.
Labels: Backend, Stellar Wave, rate-limiting, security, api
Complexity: Medium (150)
Description
Rate limiting was added for payment link endpoints, but discovery, username lookup, profile reads, marketplace queries, and export requests remain unlimited. These are the cheapest endpoints to abuse for enumeration. Extend the existing throttler into named tiers applied across the public surface.
Acceptance Criteria