From 4e3414fe9c569a01f17dba89d67d0765fc0c1202 Mon Sep 17 00:00:00 2001 From: Basil Hosmer Date: Fri, 12 Sep 2025 00:44:29 -0400 Subject: [PATCH] Fix undefined staticFileRateLimit in auth server - Add missing staticFileRateLimit definition in auth-server/index.ts - Resolves compilation error in auth server build - Addresses PR check failure about missing rate limiting on line 123 --- auth-server/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/auth-server/index.ts b/auth-server/index.ts index cc1b72e..7671832 100644 --- a/auth-server/index.ts +++ b/auth-server/index.ts @@ -73,6 +73,12 @@ const fakeAuthRateLimit = rateLimit({ message: { error: 'too_many_requests', error_description: 'Authentication rate limit exceeded' } }); +const staticFileRateLimit = rateLimit({ + windowMs: 10 * 60 * 1000, // 10 minutes + limit: 25, // 25 requests per 10 minutes for static files + message: { error: 'too_many_requests', error_description: 'Static file rate limit exceeded' } +}); + // Token introspection endpoint (RFC 7662) app.post('/introspect', introspectRateLimit, express.urlencoded({ extended: false }), async (req, res) => { try {