merge: Implement new SkRateLimiterServer with Leaky Bucket rate limits (resolves #592) (!799)
View MR for information: !799 Closes #592 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Marie <github@yuugi.dev>
Showing
- packages/backend/eslint.config.js 7 additions, 0 deletionspackages/backend/eslint.config.js
- packages/backend/src/core/CoreModule.ts 6 additions, 0 deletionspackages/backend/src/core/CoreModule.ts
- packages/backend/src/core/EnvService.ts 20 additions, 0 deletionspackages/backend/src/core/EnvService.ts
- packages/backend/src/core/TimeService.ts 27 additions, 0 deletionspackages/backend/src/core/TimeService.ts
- packages/backend/src/misc/rate-limit-utils.ts 146 additions, 0 deletionspackages/backend/src/misc/rate-limit-utils.ts
- packages/backend/src/server/FileServerService.ts 27 additions, 31 deletionspackages/backend/src/server/FileServerService.ts
- packages/backend/src/server/ServerModule.ts 3 additions, 0 deletionspackages/backend/src/server/ServerModule.ts
- packages/backend/src/server/api/ApiCallService.ts 24 additions, 34 deletionspackages/backend/src/server/api/ApiCallService.ts
- packages/backend/src/server/api/RateLimiterService.ts 3 additions, 1 deletionpackages/backend/src/server/api/RateLimiterService.ts
- packages/backend/src/server/api/SigninApiService.ts 10 additions, 7 deletionspackages/backend/src/server/api/SigninApiService.ts
- packages/backend/src/server/api/SigninWithPasskeyApiService.ts 10 additions, 7 deletions...ges/backend/src/server/api/SigninWithPasskeyApiService.ts
- packages/backend/src/server/api/SkRateLimiterService.ts 198 additions, 0 deletionspackages/backend/src/server/api/SkRateLimiterService.ts
- packages/backend/src/server/api/StreamingApiServerService.ts 9 additions, 11 deletionspackages/backend/src/server/api/StreamingApiServerService.ts
- packages/backend/src/server/api/endpoints.ts 2 additions, 24 deletionspackages/backend/src/server/api/endpoints.ts
- packages/backend/src/server/api/endpoints/endpoint.ts 6 additions, 3 deletionspackages/backend/src/server/api/endpoints/endpoint.ts
- packages/backend/test/unit/SigninWithPasskeyApiService.ts 12 additions, 4 deletionspackages/backend/test/unit/SigninWithPasskeyApiService.ts
- packages/backend/test/unit/misc/rate-limit-utils-tests.ts 62 additions, 0 deletionspackages/backend/test/unit/misc/rate-limit-utils-tests.ts
- packages/backend/test/unit/server/api/SkRateLimiterServiceTests.ts 857 additions, 0 deletions...backend/test/unit/server/api/SkRateLimiterServiceTests.ts
Loading