Skip to content

Commit 1414446

Browse files
nicktrnTrigger.dev RepoOps
authored andcommitted
chore(webapp): drop rate limit exemptions for removed routes
Mono-RevId: 077d2ec07d041be9518f6d582e0601a1ec204a86
1 parent 3595bbe commit 1414446

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,38 +153,27 @@ export const apiRateLimiter = authorizationRateLimitMiddleware({
153153
limiterConfigOverride: resolveApiRateLimitOverride,
154154
onResult: recordApiRateLimitObservation,
155155
pathMatchers: [/^\/api/],
156-
// Allow /api/v1/tasks/:id/callback/:secret
157156
pathWhiteList: [
158-
"/api/internal/stripe_webhooks",
159157
// Keep allowlisted: these CLI endpoints are intentionally unauthenticated,
160158
// so this Authorization-header-keyed limiter would 401 them. They are
161159
// throttled separately by authCodeRateLimiter.server.ts.
162160
"/api/v1/authorization-code",
163161
"/api/v1/token",
164162
"/api/v1/usage/ingest",
165163
"/api/v1/plain/customer-cards",
166-
/^\/api\/v1\/tasks\/[^/]+\/callback\/[^/]+$/, // /api/v1/tasks/$id/callback/$secret
167-
/^\/api\/v1\/runs\/[^/]+\/tasks\/[^/]+\/callback\/[^/]+$/, // /api/v1/runs/$runId/tasks/$id/callback/$secret
168-
/^\/api\/v1\/http-endpoints\/[^/]+\/env\/[^/]+\/[^/]+$/, // /api/v1/http-endpoints/$httpEndpointId/env/$envType/$shortcode
169-
/^\/api\/v1\/sources\/http\/[^/]+$/, // /api/v1/sources/http/$id
170-
/^\/api\/v1\/endpoints\/[^/]+\/[^/]+\/index\/[^/]+$/, // /api/v1/endpoints/$environmentId/$endpointSlug/index/$indexHookIdentifier
171164
"/api/v1/timezones",
172-
"/api/v1/usage/ingest",
173165
"/api/v1/auth/jwt/claims",
174166
// Dedicated per-run/environment limits prevent a throttled run from draining the API budget.
175167
"/api/v1/auth/oidc/token",
176168
// GitHub JWTs are verified and rate limited by the dedicated submission API.
177169
"/api/v1/trusted-deploys/prepare",
178170
"/api/v1/trusted-deploys/submit",
179-
/^\/api\/v1\/runs\/[^/]+\/attempts$/, // /api/v1/runs/$runFriendlyId/attempts
180171
/^\/api\/v1\/waitpoints\/tokens\/[^/]+\/callback\/[^/]+$/, // /api/v1/waitpoints/tokens/$waitpointFriendlyId/callback/$hash
181172
...deploymentApiPaths, // rate limited separately by deploymentRateLimiter
182173
/^\/api\/v\d+\/deployments\/current$/, // runtime SDK surface, exempt as before the deploy budget split
183174
// Internal SDK plumbing — packets are presigned-URL handshakes for
184175
// payload uploads (v2 PUT) and downloads (v1 GET), authenticated via
185176
// run-scoped JWT, called once per task/turn boundary by the runtime.
186-
// Same shape as `/api/v1/runs/$runFriendlyId/attempts` above; not a
187-
// customer-facing surface so customer rate limits shouldn't apply.
188177
/^\/api\/v1\/packets\//,
189178
/^\/api\/v2\/packets\//,
190179
/^\/api\/v1\/sessions\/[^/]+\/snapshot-url$/,

0 commit comments

Comments
 (0)