Auth middleware is always a no-op — all routes unprotected at gateway level #3
Labels
No labels
blocked:needs-attention
blocked:needs-decision
bug
chore
in-progress
quickfix
security/high
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AuWoMe/forgeflow#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: High
File:
src/middleware.ts(line 16-18)Issue: The Clerk middleware (
clerkMiddlewareHandler) is fully defined but the default export always callsnoOpHandler(), which does nothing. This means no routes are protected at the Next.js middleware/gateway level. While individual API routes checkauth(), this breaks defense-in-depth:/app/*route matcher is defined but never wired upFiles affected: All routes under
/app/*matcher patternFix: