Skip to content

Commit

Permalink
Merge pull request #2218 from jglick/htpasswd
Browse files Browse the repository at this point in the history
Demonstrate use of `htpasswd` for bCrypt in `staticPasswords`
  • Loading branch information
nabokihms committed Aug 2, 2021
2 parents 1f7ddac + 65edeff commit 766fc7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/config-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ enablePasswordDB: true
# If this option isn't chosen users may be added through the gRPC API.
staticPasswords:
- 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"
username: "admin"
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
2 changes: 1 addition & 1 deletion examples/k8s/dex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ data:
enablePasswordDB: true
staticPasswords:
- 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"
username: "admin"
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
Expand Down

0 comments on commit 766fc7a

Please sign in to comment.