You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: critical ingress routing + production hardening
Critical fix:
- Remove /dashboard and /zero-prompt from API ingress rules. These
paths are Next.js pages that need auth middleware protection.
Frontend accesses API sub-routes via /api/ prefix already.
Hardening:
- Add trustHost:true to NextAuth config (reverse proxy support)
- Read approval from DB on sign-in instead of deriving from domain
(prevents 5-min access window for revoked users)
- Use consistent email domain extraction (rsplit equivalent)
- Use shared _PROTECTED_APP_NAMES constant in delete endpoint
- Export UserMenu from shared barrel
- Add web/.env.example documenting required env vars
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments