-
Notifications
You must be signed in to change notification settings - Fork 5
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
Statelog prints passwords in console #31
Comments
I understand that rails hides user passwords from the default server log, but we haven't figured out what our server should do. I see two design decisions that lead to the current behavior:
What are the problems with including user passwords?
That's the state of my thought. I'm open to what we should do. |
Does the server need to store the plaintext password at all? The server could store a hash of the password instead. But that doesn’t work for password recovery.
I use the email/password I logged into considerit with for most things, so I feel silly now :).
|
@karth295 The server does not store plaintext passwords. This issue is only about it printing passwords in the console.log debugging output, if the user has The server stores only a salted bcrypt hash of each password. The debugging output is printed when the password is received by the server over the network, before it has been hashed. Another approach is to hash the passwords on the client instead of the server. Then the server would never even see the raw password. I originally implemented it that way, and could look into my notes to remember why I gave up on doing it. |
The diff on current_user save prints out the user's password in the clear.
e.g.
o client0.save('current_user') .login_as = {"name":"Travis","pass”:”mypassword”} [client01f]
The text was updated successfully, but these errors were encountered: