Skip to content
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

Remove usernames and emails from AI traces. #5293

Merged
merged 2 commits into from
Jan 19, 2018
Merged

Conversation

cristinamanum
Copy link
Contributor

Remove usernames and emails from AI traces.

@@ -756,7 +755,7 @@ private User FindByUserNameOrEmail(string userNameOrEmail)
else
{
// If multiple matches, leave it null to signal no unique email address
_trace.Warning("Multiple user accounts with email address: " + userNameOrEmail + " found: " + String.Join(", ", allMatches.Select(u => u.Username)));
_trace.Warning("Multiple user accounts with a single email address were found. Count: " + String.Join(", ", allMatches.Select(u => u.Username)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing String.Join(", ", allMatches.Select(u => u.Username)) should be allMatches.Count()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, good catch. Fixed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chenriksson - First comment - thank you - fixed.
Second comment - plain Client IP is not ok - needs to be obfuscated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified the traces for cookie compliance and do not seem to be IPs in the messages.

@chenriksson
Copy link
Member

SecurePushSubscription may have _diagnostics.Information including username.

Client IP is ok in AI logs, right?

@cristinamanum cristinamanum merged commit 4caac39 into dev Jan 19, 2018
@xavierdecoster xavierdecoster deleted the cmanuaitraces branch January 29, 2018 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants