caelum0x e1342fa58a feat(product-analytics): session replay ingest, object storage, masking, lookups, signed player links, expiry and privacy deletion (A3)
- /s/ and /i/v0/s/ take the recorder's $snapshot batches in any capture
  encoding; the recorder's partly compressed events are restored to plain
  rrweb, every typed value (inputs, textareas, selects, input events,
  value mutations) is masked in the bytes kept, and one gzip NDJSON chunk
  per session and request goes to S3-compatible storage (aws4fetch, MIT,
  vendored) or a directory, indexed in pa.replays and pa.replay_chunks.
  Byte test: the typed text is in neither the stored nor the decompressed
  bytes.
- Recording is off until the project turns it on (and object storage is
  configured); remote config then sends sessionRecording with the sample
  rate and fixed masking (sections.ts, handed over by A1).
- A recording opens from a person (any of their ids, through merges), an
  event (with its offset) or a list of people such as funnel drop-offs.
- The player page (rrweb-player 2.1.6, MIT, vendored) opens from a signed
  10-minute link (HMAC over resource, project, exp), strict CSP, no
  referrer, framed only by PA_CONSOLE_ORIGIN; the SDK's lazily loaded
  recorder and survey code is served at /static/ (posthog-js 1.435.1 dist,
  Apache-2.0/MIT, vendored).
- 30-minute maximum, expiry after the plan's replay days (30, target),
  and the privacy hook deletes objects then rows and lists recordings in
  the person export.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 07:18:04 +03:00

11 lines
931 B
CSS

:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
body { margin: 0; background: #f6f7f9; color: #1d2230; }
#stage { display: flex; justify-content: center; align-items: flex-start; padding: 8px; min-height: 100vh; box-sizing: border-box; }
#status { margin-top: 20vh; font-size: 15px; color: #4a5160; }
.heat-wrap { position: relative; border: 1px solid #d9dde5; background: #fff; }
.heat-wrap iframe { border: 0; display: block; }
.heat-wrap canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.heat-bar { display: flex; gap: 12px; align-items: center; font-size: 13px; padding: 6px 0; color: #4a5160; }
.scroll-band { position: absolute; left: 0; right: 0; border-top: 1px dashed #4a5160; font-size: 12px; color: #1d2230; background: rgba(255, 255, 255, 0.0); pointer-events: none; }
.scroll-band span { background: #ffffffd9; padding: 1px 6px; border-radius: 4px; }