-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pii): Mark sentry_user field as PII (#3948)
This marks `User::sentry_user` as PII so it gets scrubbed correctly.
- Loading branch information
1 parent
547ea96
commit dc843b0
Showing
4 changed files
with
148 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,9 +71,9 @@ Event { | |
}, | ||
), | ||
name: ~, | ||
sentry_user: ~, | ||
geo: ~, | ||
segment: ~, | ||
sentry_user: ~, | ||
data: ~, | ||
other: {}, | ||
}, | ||
|
112 changes: 112 additions & 0 deletions
112
relay-pii/src/snapshots/relay_pii__processor__tests__sentry_user.snap
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
--- | ||
source: relay-pii/src/processor.rs | ||
expression: "&data" | ||
--- | ||
Event { | ||
id: ~, | ||
level: ~, | ||
version: ~, | ||
ty: ~, | ||
fingerprint: ~, | ||
culprit: ~, | ||
transaction: ~, | ||
transaction_info: ~, | ||
time_spent: ~, | ||
logentry: ~, | ||
logger: ~, | ||
modules: ~, | ||
platform: ~, | ||
timestamp: ~, | ||
start_timestamp: ~, | ||
received: ~, | ||
server_name: ~, | ||
release: ~, | ||
dist: ~, | ||
environment: ~, | ||
site: ~, | ||
user: User { | ||
id: ~, | ||
email: ~, | ||
ip_address: Meta { | ||
remarks: [ | ||
Remark { | ||
ty: Substituted, | ||
rule_id: "@ip:replace", | ||
range: Some( | ||
( | ||
0, | ||
4, | ||
), | ||
), | ||
}, | ||
Remark { | ||
ty: Removed, | ||
rule_id: "@anything:remove", | ||
range: None, | ||
}, | ||
], | ||
errors: [], | ||
original_length: Some( | ||
13, | ||
), | ||
original_value: None, | ||
}, | ||
username: ~, | ||
name: ~, | ||
sentry_user: Annotated( | ||
"ip:[ip]", | ||
Meta { | ||
remarks: [ | ||
Remark { | ||
ty: Substituted, | ||
rule_id: "@ip:replace", | ||
range: Some( | ||
( | ||
3, | ||
7, | ||
), | ||
), | ||
}, | ||
], | ||
errors: [], | ||
original_length: Some( | ||
16, | ||
), | ||
original_value: None, | ||
}, | ||
), | ||
geo: ~, | ||
segment: ~, | ||
data: ~, | ||
other: {}, | ||
}, | ||
request: ~, | ||
contexts: ~, | ||
breadcrumbs: ~, | ||
exceptions: ~, | ||
stacktrace: ~, | ||
template: ~, | ||
threads: ~, | ||
tags: ~, | ||
extra: ~, | ||
debug_meta: ~, | ||
client_sdk: ~, | ||
ingest_path: ~, | ||
errors: ~, | ||
key_id: ~, | ||
project: ~, | ||
grouping_config: ~, | ||
checksum: ~, | ||
csp: ~, | ||
hpkp: ~, | ||
expectct: ~, | ||
expectstaple: ~, | ||
spans: ~, | ||
measurements: ~, | ||
breakdowns: ~, | ||
scraping_attempts: ~, | ||
_metrics: ~, | ||
_metrics_summary: ~, | ||
_dsc: ~, | ||
other: {}, | ||
} |