Skip to content
Snippets Groups Projects
Unverified Commit 766fc7ad authored by Maksim Nabokikh's avatar Maksim Nabokikh Committed by GitHub
Browse files

Merge pull request #2218 from jglick/htpasswd

Demonstrate use of `htpasswd` for bCrypt in `staticPasswords`
parents 1f7ddac4 65edeff2
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,7 @@ enablePasswordDB: true ...@@ -141,7 +141,7 @@ enablePasswordDB: true
# If this option isn't chosen users may be added through the gRPC API. # If this option isn't chosen users may be added through the gRPC API.
staticPasswords: staticPasswords:
- email: "admin@example.com" - email: "admin@example.com"
# bcrypt hash of the string "password" # bcrypt hash of the string "password": $(echo password | htpasswd -BinC 10 admin | cut -d: -f2)
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W" hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
username: "admin" username: "admin"
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466" userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
...@@ -103,7 +103,7 @@ data: ...@@ -103,7 +103,7 @@ data:
enablePasswordDB: true enablePasswordDB: true
staticPasswords: staticPasswords:
- email: "admin@example.com" - email: "admin@example.com"
# bcrypt hash of the string "password" # bcrypt hash of the string "password": $(echo password | htpasswd -BinC 10 admin | cut -d: -f2)
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W" hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
username: "admin" username: "admin"
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466" userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment