Repository navigation
PII: obfuscate patterns - #2
Merged
Merged
Conversation
david-whimsical
force-pushed
the
david/obfuscate-pii-defauts
branch
from
May 11, 2026 09:54
b0ad1d2 to
a0d504e
Compare
Column-level redaction already replaces flagged columns with <pii>, but PII embedded inside innocuous columns (an email or phone in a description) was rendering verbatim. Add a value-level pass over sample-row cells that scrubs known shapes to typed tokens: <email>, <ip>, <phone>.
Ships value-level PII obfuscation for sample-row cells.
david-whimsical
force-pushed
the
david/obfuscate-pii-defauts
branch
from
May 11, 2026 10:00
a0d504e to
5c54733
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5c54733. Configure here.
The previous single pattern matched `15-01-2024`, `01.15.2024`, etc.
because the trailing 4-digit year satisfied \d{3,9}. Split phone into
phone_intl (must lead with +country-code) and phone_na (strict 3-3-4
shape). Both emit <phone>; neither matches DD-MM-YYYY, MM-DD-YYYY, or
YYYY-MM-DD because real phones have ≥10 digits and common date formats
have ≤8.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

In addition to the option that helps hiding PII in models' head, ie.
this replaces any email, phone number and IP found by
<email>,<phone>or<ip>.It's possible to define custom rules in
wlens.yml(cf. comments in default config file)