miroir/crates/miroir-proxy/src
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
..
routes feat(admin-ui): add 2PC settings preview endpoint and UI integration 2026-05-25 00:03:35 -04:00
admin_session.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
admin_ui.rs feat(admin-ui): add session cookie authentication support for embedded SPA 2026-05-25 00:18:46 -04:00
auth.rs fix(tests): add missing vector_config field and fix test compilation 2026-05-24 20:45:02 -04:00
client.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
error.rs Integrate MeilisearchError into proxy (IntoResponse, auth middleware) + telemetry 2026-04-19 05:21:09 -04:00
error_response.rs feat(tests): add cross-compatibility SDK tests and standalone Meilisearch 2026-05-24 08:40:58 -04:00
lib.rs feat(admin-ui): implement Overview and Topology sections (plan §13.19) 2026-05-24 09:53:32 -04:00
main.rs feat(marathon): wire up Mode A coordinator to drift_reconciler, anti_entropy_worker, canary_runner (P6.3) 2026-05-24 19:38:46 -04:00
middleware.rs feat(dump-import): add Prometheus metrics for streaming dump import (§13.9) 2026-05-24 19:30:36 -04:00
otel.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
retry_cache.rs Phase 1 (miroir-cdo): Final verification summary 2026-05-09 11:38:45 -04:00
scatter.rs Phase 2 (miroir-9dj): Proxy + API Surface — Complete implementation 2026-05-09 12:08:28 -04:00
scoped_key_rotation.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
search_ui_serve.rs fix(search_ui): correct test assertion for embedded file serving 2026-05-24 19:52:49 -04:00
state.rs Phase 1 (miroir-cdo): Final verification summary 2026-05-09 11:38:45 -04:00
task_manager.rs Phase 1 (miroir-cdo): Final verification summary 2026-05-09 11:38:45 -04:00