miroir/crates/miroir-proxy
jedarden 17b25e4cf1 feat(analytics): implement beacon idempotency and CDC integration (P5.21.f §13.21)
Implement analytics beacon endpoint with idempotency and CDC integration:

- Add `check_and_mark_beacon_event` to TaskStore trait for idempotency
- Implement for both Redis (HSET with 24h TTL) and SQLite (table with cleanup)
- Add JWT session extraction for session_id in beacon events
- Add server-side event_id generation fallback for old browsers (SHA256 hash)
- Integrate with CDC manager to publish AnalyticsEvents (click_through, latency)
- Respect cdc.emit_internal_writes for latency events
- Add Display impl for JwtValidationError for proper error logging
- Add jwt_decode_with_fallback helper for JWT rotation support
- Add unit tests for beacon idempotency (SQLite and Redis)

Closes: miroir-uhj.21.6
2026-05-25 02:48:55 -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(analytics): implement beacon idempotency and CDC integration (P5.21.f §13.21) 2026-05-25 02:48:55 -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