miroir/crates
jedarden e19f0c8137 feat(admin-ui): add session cookie authentication support for embedded SPA
Updated `serve_admin_ui` to accept requests authenticated via admin
session cookie (set by `/admin/login`), in addition to the existing
X-Admin-Key and Authorization: Bearer header methods.

The auth middleware already unseals the session cookie and sets the
`AdminSessionId` extension - the UI handler now checks for this extension
to allow cookie-authenticated requests through.

Added comprehensive unit tests for:
- X-Admin-Key authentication
- Bearer token authentication
- Session cookie authentication (via extension)
- File serving with proper cache headers
- 404 for missing files

The embedded admin UI assets are ~35 KB gzipped (well under the 100 KB
requirement). Session sealing, CSRF, and cross-pod session invalidation
were already implemented in prior work.

Closes: miroir-uhj.19
2026-05-25 00:18:46 -04:00
..
miroir-core test(miroir-proxy): add P10.6 CSRF posture acceptance tests (§9) 2026-05-24 23:28:58 -04:00
miroir-ctl feat(reshard): implement full six-phase orchestrator with admin API integration 2026-05-24 18:59:36 -04:00
miroir-proxy feat(admin-ui): add session cookie authentication support for embedded SPA 2026-05-25 00:18:46 -04:00