Browse Source

Demonstrate use of `htpasswd` for bCrypt in `staticPasswords`

Signed-off-by: Jesse Glick <jglick@cloudbees.com>
pull/2218/head
Jesse Glick 5 years ago
parent
commit
f1d4fec45e
No known key found for this signature in database
GPG Key ID: 1DDA69D94B624311
  1. 2
      examples/config-dev.yaml
  2. 2
      examples/k8s/dex.yaml

2
examples/config-dev.yaml

@ -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"
# echo password | htpasswd -BinC 10 admin | cut -d: -f2
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
username: "admin"
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"

2
examples/k8s/dex.yaml

@ -103,7 +103,7 @@ data:
enablePasswordDB: true
staticPasswords:
- email: "admin@example.com"
# 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"

Loading…
Cancel
Save