Skip to content

api-gateway rate limiting keyed only by IP, not per-merchant #559

Description

@therealjhay

ProblemRate limits are IP-keyed; many merchants behind one NAT share a limit, and one noisy merchant can throttle others.

  1. IP-only key.
  2. No merchant dimension.
  3. Shared-NAT fairness broken.

Solution

  • Key by authenticated merchant when present, IP as fallback.
  • Support nested limits.
  • Test shared-NAT scenario.

Acceptance Criteria

  • Authenticated requests limit per merchant.
  • Anonymous requests limit per IP.
  • pnpm --filter api-gateway build passes.

Note for Contributors: Write a clear PR description. Show the two-dimensional limiting test.

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions