deepstream.io icon indicating copy to clipboard operation
deepstream.io copied to clipboard

MacOS standalone binary hashing broken

Open ChristophConrads-deepstreamHub opened this issue 9 years ago • 3 comments

The password hashes generated by the MacOS standalone binary v2.0.1 always lead to authentication errors.

The error must be located in the hash computation because the default config files shipped with the standalone binary work with both the standalone binary and the deepstream server installed via npm. Similarly, using newly generated password hashes causes authentication failures with both programs.

Steps to reproduce:

  • download the binary (direct link)
  • unzip
  • enable file-based authentication in conf/config.yml
  • start the server
  • connect with a client, username userA, password password
  • observe AUTH_SUCCESSFUL message in server output
  • kill client and server
  • compute a password hash with ./deepstream hash password
  • copy the new hash into conf/users.yml
  • start the server
  • connect with a client, username userA, password password
  • observe INVALID_AUTH_DATA message in server output, AUTH_SUCCESSFUL is expected

Hash computation with deepstream 2.0.1 installed with npm works.

Can we reverify if this is broken?

yasserf avatar Jul 07 '17 09:07 yasserf

not able to reproduce: Screen Shot 2017-07-10 at 12.01.45.png Screen Shot 2017-07-10 at 13.50.01.png

mrby avatar Jul 10 '17 10:07 mrby