This commit is contained in:
2025-08-22 18:18:35 +02:00
parent 92f2e5c0d1
commit 5fdab97f7f
34 changed files with 266 additions and 3862 deletions

View File

@@ -93,14 +93,17 @@ class SecurityMiddleware(BaseHTTPMiddleware):
"""Determine if security analysis should be skipped for this request"""
path = request.url.path
# Skip for health checks and static assets
# Skip for health checks, authentication endpoints, and static assets
skip_paths = [
"/health",
"/metrics",
"/api/v1/docs",
"/api/v1/openapi.json",
"/api/v1/redoc",
"/favicon.ico"
"/favicon.ico",
"/api/v1/auth/register",
"/api/v1/auth/login",
"/", # Root endpoint
]
# Skip for static file extensions