-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
chore(linux): Improve Sentry reports #9725
Conversation
The `hash` method that we previously used calculates the hash based on the memory location, i.e. with each program run we get a different value for the same user. This change now uses the md5 algorithm so that the same user always produces the same hash.
This change adds additional details to Sentry events so that the "All Events" tab on keyman.sentry.io will show helpful values in the "device" and "os" columns instead of emptry strings.
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
hash = hashlib.md5() | ||
hash.update(getpass.getuser().encode()) | ||
set_user({'id': hash.hexdigest()}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this -- md5 hashes of short strings are pretty easy to reverse with rainbow tables. It's low risk but it is a bit of an overshare.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So better use sha256?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I am thinking I was worrying too much about the hash of username. I think it's no big deal -- the data is not really useful to anyone as it is just used to link related crash reports as you say.
Changes in this pull request will be available for download in Keyman version 17.0.187-alpha |
hash
function calculates the hash based on the memory location.@keymanapp-test-bot skip