Keep email addresses out of log files
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.
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 I'd actually like to discuss the threat modeling question again.
This is already done on the Loggly side, or at least is intended to, with the EmailSanitizer in LogglyMessage.java
@myleshorton Nice! We should be able to plug those into papertrail without too much trouble.