Skip to content

Commit

Permalink
feat: allow other password hashing algorithms (#3229)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Jun 14, 2022
1 parent 3c06bbd commit 87fbc0f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .pnp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions conf/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ auth:
# Maximum amount of users allowed to register, defaults to "+inf".
# You can set this to -1 to disable registration.
# max_users: 1000
# Hash algorithm, possible options are: "bcrypt", "md5", "sha1", "crypt".
# algorithm: bcrypt # by default is crypt, but is recommended use bcrypt for new installations
# Rounds number for "bcrypt", will be ignored for other algorithms.
# rounds: 10

# https://verdaccio.org/docs/configuration#uplinks
# a list of other known repositories we can talk to
Expand Down
4 changes: 4 additions & 0 deletions conf/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ auth:
# Maximum amount of users allowed to register, defaults to "+infinity".
# You can set this to -1 to disable registration.
# max_users: 1000
# Hash algorithm, possible options are: "bcrypt", "md5", "sha1", "crypt".
# algorithm: bcrypt # by default is crypt, but is recommended use bcrypt for new installations
# Rounds number for "bcrypt", will be ignored for other algorithms.
# rounds: 10

# https://verdaccio.org/docs/configuration#uplinks
# a list of other known repositories we can talk to
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"semver": "7.3.7",
"validator": "13.7.0",
"verdaccio-audit": "10.2.2",
"verdaccio-htpasswd": "10.3.1"
"verdaccio-htpasswd": "10.4.0"
},
"devDependencies": {
"@babel/cli": "7.17.10",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14988,16 +14988,16 @@ typescript@4.1.3:
languageName: node
linkType: hard

"verdaccio-htpasswd@npm:10.3.1":
version: 10.3.1
resolution: "verdaccio-htpasswd@npm:10.3.1"
"verdaccio-htpasswd@npm:10.4.0":
version: 10.4.0
resolution: "verdaccio-htpasswd@npm:10.4.0"
dependencies:
"@verdaccio/file-locking": 10.3.0
apache-md5: 1.1.7
bcryptjs: 2.4.3
http-errors: 2.0.0
unix-crypt-td-js: 1.1.4
checksum: dbd8230d6a2d834560310669ce4ecd4d0b4f888c3a418f0cd51af8ebb3703a12f9a625cc8619ef57c44f8821a5fd0146a234942d4097a2262a223218bf393c05
checksum: 1ea4dd681668f04a319485bb30b4be64968831f88377c8c5c89e4f5a87588cbae74efe27d99d7148d0245b0e8b8949a0e1e02489b0e0ff241fffc9b03cba1768
languageName: node
linkType: hard

Expand Down Expand Up @@ -15137,7 +15137,7 @@ typescript@4.1.3:
validator: 13.7.0
verdaccio-audit: 10.2.2
verdaccio-auth-memory: 10.2.0
verdaccio-htpasswd: 10.3.1
verdaccio-htpasswd: 10.4.0
verdaccio-memory: 10.3.0
bin:
verdaccio: ./bin/verdaccio
Expand Down

0 comments on commit 87fbc0f

Please sign in to comment.