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>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-04 19:51:42 -03:00
1 parent a90ff81650
commit 2b1bc63340
11 files changed
+2455 -79

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
mod auth_http;
mod transport;
mod web;
use acaua_core::{doctor, update, zeek};