-
-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correctly filter URL with an email address in it #2690
Comments
Java SDK is affected as well, here's a test:
with result:
|
@adinauer will you fix it right away? people that rely on transaction name and span desc from this parser, this will be broken, if you figure out how, I can just replicate on Dart. |
Wasn't planning to do this soon. We can bump prio if you want. |
I believe the priority is rather important, otherwise, every span and transaction name will be wrong and not identified and they all be grouped together because the filtered URL is always the same every time the parsing breaks. |
Yeah, erring on the other side would mean leaking authority of URLs tho, so we have to be careful. |
Well the logic to strip out the authority is there, it's just a matter of fixing the parsing to keep the domain and its sub/folders, it's a bug in the parsing, not a matter of PII anymore. |
Sure it's a bug but fixing it may break the filtering. It's not quite easy to determine whether something is part of an email or authority of an URL as there doesn't seem to be a clear set of characters we can use. Take e.g. this URL
So we could use |
@adinauer yes, I'd suggest using the builtin
So to be honest, this is there already, maybe we don't even need our own regexes. |
@adinauer What places should we scrubble the email for? Do you have any more insight on this? |
Should be a change in |
@adinauer And is it only for OkHttp integration? Or other integrations like apollo need it? |
This should be the same for all integrations using |
Description
A related issue in Dart.
This came up as an issue in
sentry-dart
but as the logic is the same it's likely an issue insentry-java
too.We should check it and fix it if needed.
The text was updated successfully, but these errors were encountered: