miroir/crates/miroir-proxy
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
..
admin-ui/dist feat(admin-ui): add 2PC settings preview endpoint and UI integration 2026-05-25 00:03:35 -04:00
src feat(admin-ui): add session cookie authentication support for embedded SPA 2026-05-25 00:18:46 -04:00
static feat(search-ui): add embeddable modes and custom templates (P5.21.e) 2026-05-24 14:37:00 -04:00
tests feat(admin-ui): add 2PC settings preview endpoint and UI integration 2026-05-25 00:03:35 -04:00
Cargo.toml test(miroir-proxy): add client-pinned freshness acceptance tests (P5.5.e §13.5) 2026-05-24 22:33:11 -04:00