chore: add CodeQL config to suppress rate-limit false positives

Rate limiting IS implemented via @fastify/rate-limit plugin:
- Global: 100 req/min (index.ts)
- Auth routes: 5-10 req/min via config.rateLimit option

CodeQL doesn't recognize Fastify's plugin-based rate limiting pattern.
This commit is contained in:
Daniel Volz
2025-12-30 12:46:05 +01:00
parent b8d5647980
commit 6b54ecef4f
2 changed files with 21 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
name: "MedAssist CodeQL Config"
# Paths to ignore in CodeQL analysis
paths-ignore:
- "**/node_modules/**"
- "**/dist/**"
- "**/*.test.ts"
# Query filters to suppress false positives
# The rate limiting alerts are false positives because we use @fastify/rate-limit plugin
# which CodeQL doesn't recognize. The plugin is registered globally in index.ts
# and route-specific limits are applied via config.rateLimit option.
query-filters:
- exclude:
id: js/missing-rate-limiting
# We use @fastify/rate-limit which CodeQL doesn't detect