Commit Graph
4 Commits
Author SHA1 Message Date
Lucas RayanandClaude Opus 5.5 5ad89d5be5 fix(auth): throttle bootstrap and require reauth for user changes
Bootstrap takes the client IP, is limited per IP, and writes no audit line
once an admin exists. Creating, changing the role of or deleting a user now
needs a session with recent reauthentication; API tokens are refused.
/api/analyze and /api/update return fixed messages and log the detail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 19:56:59 -03:00
Lucas RayanandClaude Opus 5.5 2b1bc63340 feat(auth): deny-by-default HTTP layer
A global middleware wraps the router and its fallback: only PUBLIC_ROUTES
answer without a credential, and unknown paths look like protected ones.
Adds cookie sessions with per-session CSRF, scoped Bearer tokens, the
/api/auth and /api/admin handlers, Transport for client IP and Secure, and
pending-token enrollment re-checked inside one store update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 19:51:42 -03:00
Lucas RayanandClaude Opus 5.5 a90ff81650 fix(auth): per-session reauth and admin token lifecycle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 19:40:08 -03:00
Lucas RayanandClaude Opus 5.5 c2d352ae30 feat(auth): sessions and scoped API tokens
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 19:34:37 -03:00