Skip to content

Commit da111e2

Browse files
authored
fix(api): whitelist deployment endpoints from the general API rate limits (#2774)
Deployments are affected by general API rate limits, this is just a quick fix by whitelisting the deployment related endpoints. In a follow up PR we'll add a separate rate limiter for this group of endpoints.
1 parent 2c3cb4a commit da111e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/webapp/app/services/apiRateLimit.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const apiRateLimiter = authorizationRateLimitMiddleware({
6161
"/api/v1/auth/jwt/claims",
6262
/^\/api\/v1\/runs\/[^\/]+\/attempts$/, // /api/v1/runs/$runFriendlyId/attempts
6363
/^\/api\/v1\/waitpoints\/tokens\/[^\/]+\/callback\/[^\/]+$/, // /api/v1/waitpoints/tokens/$waitpointFriendlyId/callback/$hash
64+
/^\/api\/v1\/deployments/, // /api/v1/deployments/*
6465
],
6566
log: {
6667
rejections: env.API_RATE_LIMIT_REJECTION_LOGS_ENABLED === "1",

0 commit comments

Comments
 (0)