What do they mean by sha2 password?

I hashed password “password” and put it in the settings. Run from docker. No https.
GRAYLOG_ROOT_PASSWORD_SHA2=“5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8”
Of course I also provide secret.
GRAYLOG_PASSWORD_SECRET=“iyx6v8RKxQ6lFggapyTPBCQwFtmVPVgJISH32wmIgr2DwuDjUIr4qx9mbMILo4ETHNjuAr98jilG4xCzGXaDhivC1R5WQcml”

Having this, i enter “admin”, “password” - no luck, does not work.
What I used to generate hash:

  1. echo -n "Enter Password: " && head -1 </dev/stdin | tr -d ‘\n’ | sha256sum | cut -d’ ’ -f1
    Enter Password: password
    5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8

  2. openssl passwd -6 password

Should it be salt:hash?
How exactly should I generate sha2 for success?

Hey @Amir

Have you tried it without the quotes?

# CHANGE ME (must be at least 16 characters)!
    - GRAYLOG_PASSWORD_SECRET=somepasswordpepper
# Password: admin
    - GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.