Skip to content

Drive marker PII sanitization from schemas - #6291

Open
fatadel wants to merge 1 commit into
firefox-devtools:mainfrom
fatadel:issue-6290
Open

Drive marker PII sanitization from schemas#6291
fatadel wants to merge 1 commit into
firefox-devtools:mainfrom
fatadel:issue-6290

Conversation

@fatadel

@fatadel fatadel commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Main | Deploy preview

Markers requiring PII sanitization were identified through hardcoded data.type checks. Putting PII directives in marker schema fields removes type-specific branching and makes sanitization generic.

Closes #6290


Profile

Published using Prod | Published using Deploy Preview

@fatadel
fatadel requested review from canova and mstange August 31, 2026 13:09
@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.33333% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.87%. Comparing base (7abc8b8) to head (8942af7).
⚠️ Report is 42 commits behind head on main.

Files with missing lines Patch % Lines
src/profile-logic/marker-data.ts 91.04% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6291      +/-   ##
==========================================
+ Coverage   83.82%   83.87%   +0.05%     
==========================================
  Files         350      353       +3     
  Lines       37744    37888     +144     
  Branches    10646    10687      +41     
==========================================
+ Hits        31638    31779     +141     
- Misses       5677     5680       +3     
  Partials      429      429              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@canova
canova requested review from canova and removed request for canova and mstange September 3, 2026 14:35

@canova canova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot! I have some high level schema related question, let me know what you think!

Comment thread src/types/markers.ts Outdated
Comment thread src/types/markers.ts Outdated
Comment thread src/types/markers.ts Outdated
@mstange

mstange commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

I haven't looked at the code yet but I'd like to point out #5301 which has a related proposal.

@canova

canova commented Sep 9, 2026

Copy link
Copy Markdown
Member

@mstange ah thanks! I forgot that this was filed. Structurally it's actually very similar to what I suggested (minus the naming differences) but I forgot the sanitized-string one. It looks nice

@fatadel

fatadel commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

@mstange ah thanks! I forgot that this was filed. Structurally it's actually very similar to what I suggested (minus the naming differences) but I forgot the sanitized-string one. It looks nice

Let's handle sanitized-string in that issue then and keep this one's scope to the one we already defined?

@fatadel
fatadel requested a review from canova September 9, 2026 12:01
@fatadel

fatadel commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review, @canova! I've addressed the issues now.

Comment thread src/types/markers.ts Outdated
Markers requiring PII sanitization were identified through hardcoded
`data.type` checks. Describing PII categories in marker schema fields
removes type-specific branching while leaving sanitization behavior to
the consumer.
@fatadel

fatadel commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback, @mstange! Done now ✅

@mstange

mstange commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

I don't see an upgrader; what happens if you re-upload an existing old uploaded profile and uncheck some checkboxes in the re-upload?

@mstange

mstange commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Also does there need to be code in profile processing which adds these annotations when converting from a Gecko profiler?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drive marker PII sanitization from marker schemas

3 participants