Skip to content

fix(rate-limit): skip the IP limit for first-party service keys - #128

Merged
coopbri merged 1 commit into
masterfrom
fix/service-key-rate-limit
Nov 24, 2026
Merged

coopbri merged 1 commit into
masterfrom
fix/service-key-rate-limit

Conversation

@coopbri

@coopbri coopbri commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Description

  • Requests authenticated with the internal service key skip the 100/min per-IP rate limit
  • First-party services reach Vortex through its public URL and share one egress IP, so a burst from one (Aether entitlement updates) 429'd everyone else's events, which were dropped (aether-api 284, halo-api 10 in 72h; 4 of 51 omni-api consent backfill events)
  • Tenant API keys and sessions are still IP-limited; the key check is in-memory and constant-time

Test Steps

  1. bun test src/__tests__/serviceKeyRateLimit.test.ts (full suite passes except the 2 pre-existing network icon-URL tests; CI is down on Actions billing)
  2. After deploy, kubectl -n fractal-core logs deploy/aether-api | grep "Event emit failed: 429" shows no new failures

@coopbri
coopbri merged commit 79a41a5 into master Nov 24, 2026
3 of 5 checks passed
@coopbri
coopbri deleted the fix/service-key-rate-limit branch November 24, 2026 08:55
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant