Skip to content

chore(Tracking): Mask all text in Amplitude session replays - #9125

Merged
talissoncosta merged 1 commit into
mainfrom
chore/session-replay-mask-text
Nov 26, 2026
Merged

talissoncosta merged 1 commit into
mainfrom
chore/session-replay-mask-text

Conversation

@talissoncosta

Copy link
Copy Markdown
Contributor
  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Session Replay records half of app sessions. With the default medium mask level only inputs are masked, so replays capture customer data on screen: flag names and values, segment rules, identities.

Sets defaultMaskLevel: 'conservative', which masks all text. We keep the replays (clicks, navigation, layout) without the content.

Amplitude's remote privacy settings take precedence over this, so the project's Session Replay settings should be checked to make sure they don't lower it.

How did you test this code?

  • npm run test:unit passes. No new type errors.
  • After deploy: open a new replay in Amplitude and check that page text shows as masked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
flagsmith-frontend-preview Ready Ready Preview Nov 26, 2026 1:13pm UTC
flagsmith-frontend-staging Ready Ready Preview Nov 26, 2026 1:13pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Nov 26, 2026 1:13pm UTC

Request Review

@github-actions github-actions Bot added the front-end Issue related to the React Front End Dashboard label Nov 26, 2026
@github-actions github-actions Bot added the chore label Nov 26, 2026
@talissoncosta
talissoncosta marked this pull request as ready for review November 26, 2026 13:40
@talissoncosta
talissoncosta requested a review from a team as a code owner November 26, 2026 13:40
@talissoncosta
talissoncosta requested review from kyle-ssg and removed request for a team November 26, 2026 13:40
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-9125 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-9125 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-9125 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-9125 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9125 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-frontend:pr-9125 Finished ✅ Results ✅

@github-actions github-actions Bot added chore and removed chore labels Nov 26, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds Amplitude session replay privacy config to mask all text, reducing captured customer data. Changes data-handling policy and depends on remote Amplitude settings, so needs human sign-off.

Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23834 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  1 minute, 1 second
commit  6a144dd
info  🔄 Run: #23834 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-16 — run #23834 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  3 passed

Details

stats  3 tests across 3 suites
duration  44.4 seconds
commit  6a144dd
info  🔄 Run: #23834 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23834 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  33.2 seconds
commit  6a144dd
info  🔄 Run: #23834 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23834 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.1 seconds
commit  6a144dd
info  🔄 Run: #23834 (attempt 1)

@github-actions

Copy link
Copy Markdown
Contributor

Visual Regression

29 screenshots compared. See report for details.
View full report

@talissoncosta
talissoncosta merged commit e3ffa87 into main Nov 26, 2026
58 of 60 checks passed
@talissoncosta
talissoncosta deleted the chore/session-replay-mask-text branch November 26, 2026 15:33

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-staging — 6a144dd0 Deployed Nov 26, 2026 by vercel[bot]
Preview – flagsmith-frontend-preview — 6a144dd0 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants