Drive marker PII sanitization from schemas - #6291
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6291 +/- ##
==========================================
+ Coverage 83.84% 83.88% +0.04%
==========================================
Files 352 353 +1
Lines 37807 37905 +98
Branches 10674 10683 +9
==========================================
+ Hits 31698 31797 +99
Misses 5679 5679
+ Partials 430 429 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
canova
left a comment
There was a problem hiding this comment.
Thanks a lot! I have some high level schema related question, let me know what you think!
|
I haven't looked at the code yet but I'd like to point out #5301 which has a related proposal. |
|
@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 |
Let's handle |
|
Thanks for the review, @canova! I've addressed the issues now. |
|
Thanks for the feedback, @mstange! Done now ✅ |
|
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? |
|
Also does there need to be code in profile processing which adds these annotations when converting from a Gecko profile? |
|
@mstange Both concerns are valid. My bad. Fixed now. |
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.
|
Re extension id removal code: after thinking about it again, I think we should have converted these extension related markers to real marker schema types with their own payload and convert them in the upgrader + the processing phase. This would allows us remove the markerName need, and we could fix the gecko side later and have a gecko profile format bump later. Sorry for not catching it sooner! |
I'll create a follow-up PR before we deploy, no worries. |
Main | Deploy preview
Markers requiring PII sanitization were identified through hardcoded
data.typechecks. 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