Skip to content

Session replay's privacy review

Session replay records the layout of the pages a person visits and where they click, with every text and every input hidden. It is built, and it stays off in every release until the owner signs this review off (ADR-0077, RFC-0008 P8). PORTAL_REPLAY and UMAMI_REPLAY are false by default in stackr and its template, and an operator turns them on only after the box at the end is checked.

Each point below says what it asks, what holds it today, and whether it is done. A point that isn't checked is the review's to finish before the sign-off.

The checklist

  • 1. Every route, masked. A screenshot of every route of the app, as its recording would replay it, with the text masked and the blocked regions empty. Not done. What is blocked instead of masked on the one allowed page: the cells that name things (a thread's title, a rule's name, the tracker items, the comment on a thumb); what is masked there: its other text. What exists: a test holds each of the app's thirteen routes to a table (main is blocked unless the page allows itself, and only the runs page does), and the recorder is tested against real pages in Chromium. The admin UI never loads the recorder, so none of its routes is recorded, Access included.
  • 2. Text and input. Every text is masked as rrweb records it (maskTextSelector: "*"), every input value is masked to a fixed width (maskAllInputs), and an input's content is never in a batch. Held by the recorder's tests, which type into an input and a textarea and look for the words in what is sent.
  • 3. Regions blocked, and it fails closed. main is blocked unless the page marks itself allow (only the runs page does, with the cells that name things blocked in it), so a new page, and a not-found page that echoes an address, are not recorded. A thread, an artifact, every frame and every dialog but the navigation drawer are blocked too. Held by a test that lists every route in routes.json and holds each to a table, and one that holds the drawer recorded and an access dialog not.
  • 4. Attributes, addresses and styles. An attribute is kept only by name and pattern (an allow-list, one file that the browser and the relay both read, so the relay is a second look at what the browser sent, not an independent opinion on the patterns); every other string is masked, or the relay drops the batch; a key rrweb's events don't have goes; no stylesheet text comes from a browser: the recorder names the page's own stylesheet and the relay gives it the application's file; an inline style is a short list of declarations from a list; every string is capped in length first and every pattern is held to linear time by a test. What passes by design: a bare word in an id, class, role or for, numbers, and whether a control is ticked or chosen (checked, aria-checked, isChecked). The app must never derive an id, a class or a data-* name from a person's text: those pass as the page's own identifiers, and nothing checks the app's code for it (no lint yet). Held by tests written apart from the list: a bare word stamped into each attribute is kept by exactly the names that name or enumerate things; a Chromium recording (a regression snapshot, captured once) is a fixture the relay's rule is held to; a sentence stamped into 289 attributes, a stylesheet, an svg, a shadow root, an editable, a meta and a title reaches no batch the browser sends and none the relay accepts; and the relay's tests of a name off the list, a worded key with a number, a list of strings, a mark with another value, a document type with a word in it, and a stylesheet that puts text on the page.
  • 5. Consent. A yes of its own, apart from analytics', refused until analytics' yes is given, withdrawn with it and not to come back with a later yes to analytics; off until the person turns it on; the words approved by the owner; a switch that the keyboard and a screen reader reach; a failure to save that says so without a server's words; a recording that starts only on the relay's yes, and stops when it is gone in another tab. Held by the menu's and the app's tests, and by the relay's, which include an analytics no that lands as a replay yes is written.
  • 6. Taking a yes back. A no deletes the person's replays at once, by deleting their sessions in Umami, and their journeys there with them, since a replay is kept in the session; if Umami can't, the deletion is owed, said in the menu, and tried again until it is done. Held by the relay's tests, and checked against Umami 3.4.0: a deleted person's replay is gone from the website, and a later replay opens a new session. The switch's words say recordings; the guide says the rest.
  • 7. The relay to Umami. Nothing of the person is sent but the hash: portalr's own agent, no X-Forwarded-For, no address, no word of theirs; consent is read on every batch; a batch is limited in events (200), in size (512 KiB) and the person in bytes of replay a second; a copy is never waited on; nothing is sent, or said to be recorded, where Umami's website keeps no replays. Held by the relay's tests: the headers and bodies of every request to Umami, the 413 and 429, and a website with replay off.
  • 8. Links to traces. The session.id join between a replay and its traces, and who may follow it either way. Not built: a replay isn't linked to a trace, so nothing is joined. The review decides whether it should be.
  • 9. Retention. No longer than analytics' own (395 days unless the operator sets otherwise), and shorter if the review asks. The owner chose 30 days by default, deleted by stackr's umami-retention service (ADR-0077, the privacy guide), which is checked against a real Umami 3.4.0. Check this point when that change has merged; until it has, nothing expires a recording.
  • 10. Where the recordings are kept, and whose. In Umami's database, umami, on the stack's plain PostgreSQL, owned by a role no other role may connect as, on networks of their own that no other service of the stack shares; not in ClickHouse. A backup of that database keeps a recording until the backup expires. Each tenant's replay is in a session of its own, so removing a person from a tenant deletes that tenant's alone. Held by stackr ADR-0050 and its smoke test, and by a relay test with two tenants.

Sign-off

Until the box below is checked, replay stays off in every release.

  • Owner sign-off: I have read the review and replay may be turned on. Signed: ____ Date: ____