# Rate Limit Boundary Fairness

> Check that rate limits and quotas are assigned and consumed per identity, so exhaustion of one caller cannot perturb another's authorization guarantees. Use when the API enforces rate limits, quotas or concurrency caps alongside its authorization checks

- Skill: `wsh7ash/rate-limit-boundary-fairness` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/rate-limit-boundary-fairness`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/rate-limit-boundary-fairness/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: Wsh7Ash (https://skillmd.com/u/wsh7ash)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/wsh7ash/rate-limit-boundary-fairness

---


# Rate Limit Boundary Fairness

> Check that rate limits and quotas are assigned and consumed per identity, so exhaustion of one caller cannot perturb another's authorization guarantees

**Use when:** the API enforces rate limits, quotas or concurrency caps alongside its authorization checks

**Avoid when:** no rate limit exists at all, so there is no consumption model to probe for boundary fairness

## Procedure

1. Record where limits are measured: gateway, service or handler, and what identity the limiter observes.
2. Hit one identity's limit deliberately using your own account and observe the exact refusal shape at the edge.
3. Verify another identity's allowance stays unaffected immediately afterward, which is the isolation property this boundary exists to check.
4. Test limit bypass surfaces where the limiter's key can change: alternate credentials for the same account, segmented IPs and tokenless calls.
5. Check whether exceed responses leak resource existence or account state the limiter should not have touched.
6. Record which limiter proxy or gateway each endpoint actually encounters, because a bypass is only meaningful against that one.

## Signals

- Exhausting your own limit takes down the shared key space in a way that interferes with a different account's calls.
- A limiter keyed on a header or route pattern silently permits alternating between your credential variants at full speed.
- Limit-exceeded responses still return data for operations your early phases proved should be refused.
- Two endpoints key the same account differently, so the effective ceiling is the sum of inconsistent counters.

## Patterns

**1. Isolation**

```text
exhaust alice's account -> bob's next call -> 200 (isolated=yes)
```

**2. Key bypass**

```text
rotate X-Forwarded-Origin values in your own surface t0..tN -> counters=each-new -> key is mutable
```

**3. Result row**

```text
limit=account-keyed bypass-surfaces=alt-header+alt-route isolation=partial
```

## Pitfalls

- Assuming limit enforcement is centralized, where a single gateway often hands over to a dispatch surface with its own counters.
- Ignoring that a limiter anomaly doubles as an authorization-perturbation: it may hide data on allowed but blocked routes.
- Mistaking a per-limiter bypass finding for a machine-wide bypass, when only the specific gateway or proxy variant is affected.

## Done when

- Every limiter surface actually facing your operations is tested with per-identity quota exhaustion.
- Cross-account isolation is verified against your own accounts and bypass surfaces are recorded per gateway or proxy in play.

## References

- [OWASP - rate limiting guidance](https://cheatsheetseries.owasp.org/)
- [OWASP API Security Top 10](https://owasp.org/www-project-api-security/)

