lantern icon indicating copy to clipboard operation
lantern copied to clipboard

Keep email addresses out of log files

Open oxtoacart opened this issue 12 years ago • 4 comments

Email addresses appear in various data that may get logged at various points by the system, for example in XMPP JIDs. Depending on log levels, some of these can end up in plain text log files on the user's system.

In case the user's system is ever physically compromised (e.g. user is detained at airport), we should keep this sort of information out of there.

One approach is to run all logging through a filter that looks for email addresses and scrubs them out (or hashes them with a salt).

NOTE - I'm not entirely clear on whether physical compromise of someone's system is (or should be) in our threat model, and this change will potentially inconvenience development and customer support, so we might want to revisit this as a team before implementing.

oxtoacart avatar Oct 29 '14 18:10 oxtoacart

Ox, I seem to remember you saying you were going to tackle this sooner rather than later, but I'm not sure. What's a good milestone to target this at now?

scouttle avatar Nov 12 '14 18:11 scouttle

@scouttle I'd actually like to discuss the threat modeling question again.

oxtoacart avatar Nov 12 '14 18:11 oxtoacart

This is already done on the Loggly side, or at least is intended to, with the EmailSanitizer in LogglyMessage.java

myleshorton avatar Dec 11 '14 17:12 myleshorton

@myleshorton Nice! We should be able to plug those into papertrail without too much trouble.

oxtoacart avatar Dec 13 '14 00:12 oxtoacart