-
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): Disable scrubbing for the User-Agent header (#2641)
Some User-Agents are being scrubbed by the IP rule, this disables scrubbing for the entire Header Fixes: #1826
- Loading branch information
Showing
5 changed files
with
93 additions
and
21 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
4 changes: 2 additions & 2 deletions
4
relay-pii/src/snapshots/relay_pii__convert__tests__regression_more_odd_keys.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
39 changes: 39 additions & 0 deletions
39
relay-pii/src/snapshots/relay_pii__processor__tests__ignore_user_agent_ip_scrubbing.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,39 @@ | ||
--- | ||
source: relay-pii/src/processor.rs | ||
expression: "&data" | ||
--- | ||
{ | ||
"request": { | ||
"headers": [ | ||
[ | ||
"User-Agent", | ||
"127.0.0.1" | ||
], | ||
[ | ||
"X-Client-Ip", | ||
"[ip]" | ||
] | ||
] | ||
}, | ||
"_meta": { | ||
"request": { | ||
"headers": { | ||
"1": { | ||
"1": { | ||
"": { | ||
"rem": [ | ||
[ | ||
"@ip:replace", | ||
"s", | ||
0, | ||
4 | ||
] | ||
], | ||
"len": 8 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |