verdaccio-htpasswd
htpasswd auth plugin for Verdaccio
Last updated 10 months ago by verdaccio.npm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install verdaccio-htpasswd 
SYNC missed versions from official npm registry.

verdaccio (latest) Known Vulnerabilities CircleCI codecov FOSSA Status backers discord MIT node

Verdaccio Module For User Auth Via Htpasswd

verdaccio-htpasswd is a default authentication plugin for the Verdaccio.

This plugin is being used as dependency after v3.0.0-beta.x. The v2.x still contains this plugin built-in.

Install

As simple as running:

$ npm install -g verdaccio-htpasswd

Configure

auth:
    htpasswd:
        file: ./htpasswd
        # 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
        # Rounds number for "bcrypt", will be ignored for other algorithms.
        # Setting this value higher will result in password verification taking longer.
        #rounds: 10
        # Log a warning if the password takes more then this duration in milliseconds to verify.
        #slow_verify_ms: 200

Bcrypt rounds

It is important to note that when using the default bcrypt algorithm and setting the rounds configuration value to a higher number then the default of 10, that verification of a user password can cause significantly increased CPU usage and additional latency in processing requests.

If your Verdaccio instance handles a large number of authenticated requests using username and password for authentication, the rounds configuration value may need to be decreased to prevent excessive CPU usage and request latency.

Also note that setting the rounds configuration value to a value that is too small increases the risk of successful brute force attack. Auth0 has a blog article that provides an overview of how bcrypt hashing works and some best practices.

Logging In

To log in using NPM, run:

    npm adduser --registry  https://your.registry.local

Generate htpasswd username/password combination

If you wish to handle access control using htpasswd file, you can generate username/password combination form here and add it to htpasswd file.

How does it work?

The htpasswd file contains rows corresponding to a pair of username and password separated with a colon character. The password is encrypted using the UNIX system's crypt method and may use MD5 or SHA1.

Plugin Development in Verdaccio

There are many ways to extend Verdaccio, currently it support authentication plugins, middleware plugins (since v2.7.0) and storage plugins since (v3.x).

Useful Links

License

FOSSA Status

Current Tags

  • 11.0.0-6-next.46                                ...           6-next (a year ago)
  • 2.0.0-beta.1                                ...           beta (6 years ago)
  • 10.5.5                                ...           latest (2 years ago)
  • 12.0.0-next.6                                ...           next (10 months ago)
  • 12.0.0-next-7.20                                ...           next-7 (3 months ago)
  • 13.0.0-next-8.3                                ...           next-8 (a month ago)

124 Versions

  • 13.0.0-next-8.3                                ...           a month ago
  • 13.0.0-next-8.2                                ...           2 months ago
  • 13.0.0-next-8.1                                ...           2 months ago
  • 13.0.0-next-8.0                                ...           2 months ago
  • 12.0.0-next-8.21                                ...           2 months ago
  • 12.0.0-next-7.19                                ...           4 months ago
  • 12.0.0-next-7.20                                ...           3 months ago
  • 12.0.0-next-7.18                                ...           4 months ago
  • 12.0.0-next-7.17                                ...           5 months ago
  • 12.0.0-next-7.16                                ...           5 months ago
  • 12.0.0-next-7.15                                ...           6 months ago
  • 12.0.0-next-7.14                                ...           6 months ago
  • 12.0.0-next-7.13                                ...           8 months ago
  • 12.0.0-next-7.12                                ...           8 months ago
  • 12.0.0-next-7.11                                ...           8 months ago
  • 12.0.0-next-7.10                                ...           9 months ago
  • 12.0.0-next-7.9                                ...           9 months ago
  • 12.0.0-next-7.8                                ...           9 months ago
  • 12.0.0-next-7.7                                ...           10 months ago
  • 12.0.0-next.6                                ...           10 months ago
  • 12.0.0-next.5                                ...           10 months ago
  • 12.0.0-next.4                                ...           a year ago
  • 12.0.0-next.3                                ...           a year ago
  • 12.0.0-next.2                                ...           a year ago
  • 12.0.0-next.1                                ...           a year ago
  • 12.0.0-next.0                                ...           a year ago
  • 11.0.0-6-next.46                                ...           a year ago
  • 11.0.0-6-next.45                                ...           a year ago
  • 11.0.0-6-next.44                                ...           a year ago
  • 11.0.0-6-next.43                                ...           a year ago
  • 11.0.0-6-next.42                                ...           a year ago
  • 11.0.0-6-next.41                                ...           a year ago
  • 11.0.0-6-next.40                                ...           2 years ago
  • 11.0.0-6-next.39                                ...           2 years ago
  • 11.0.0-6-next.38                                ...           2 years ago
  • 10.5.5                                ...           2 years ago
  • 10.5.4                                ...           2 years ago
  • 10.5.3                                ...           2 years ago
  • 11.0.0-6-next.37                                ...           2 years ago
  • 11.0.0-6-next.36                                ...           2 years ago
  • 11.0.0-6-next.35                                ...           2 years ago
  • 11.0.0-6-next.34                                ...           2 years ago
  • 11.0.0-6-next.33                                ...           2 years ago
  • 11.0.0-6-next.32                                ...           2 years ago
  • 11.0.0-6-next.31                                ...           2 years ago
  • 11.0.0-6-next.30                                ...           2 years ago
  • 11.0.0-6-next.29                                ...           2 years ago
  • 11.0.0-6-next.28                                ...           2 years ago
  • 11.0.0-6-next.27                                ...           2 years ago
  • 11.0.0-6-next.26                                ...           2 years ago
  • 10.5.2                                ...           2 years ago
  • 11.0.0-6-next.25                                ...           2 years ago
  • 11.0.0-6-next.24                                ...           2 years ago
  • 11.0.0-6-next.23                                ...           2 years ago
  • 11.0.0-6-next.22                                ...           2 years ago
  • 11.0.0-6-next.21                                ...           2 years ago
  • 10.5.1                                ...           2 years ago
  • 11.0.0-6-next.20                                ...           2 years ago
  • 11.0.0-6-next.19                                ...           2 years ago
  • 11.0.0-6-next.18                                ...           2 years ago
  • 11.0.0-6-next.17                                ...           2 years ago
  • 11.0.0-6-next.16                                ...           2 years ago
  • 11.0.0-6-next.15                                ...           2 years ago
  • 11.0.0-6-next.14                                ...           2 years ago
  • 10.5.0                                ...           2 years ago
  • 10.4.0                                ...           2 years ago
  • 10.3.1                                ...           2 years ago
  • 11.0.0-6-next.13                                ...           3 years ago
  • 10.3.0                                ...           3 years ago
  • 11.0.0-6-next.12                                ...           3 years ago
  • 10.2.0                                ...           3 years ago
  • 11.0.0-6-next.11                                ...           3 years ago
  • 10.1.0                                ...           3 years ago
  • 10.0.1                                ...           3 years ago
  • 11.0.0-6-next.10                                ...           3 years ago
  • 11.0.0-6-next.9                                ...           3 years ago
  • 11.0.0-6-next.8                                ...           3 years ago
  • 11.0.0-6-next.7                                ...           3 years ago
  • 11.0.0-alpha.6                                ...           3 years ago
  • 10.0.0                                ...           4 years ago
  • 9.7.2                                ...           4 years ago
  • 9.7.1                                ...           4 years ago
  • 9.7.0                                ...           4 years ago
  • 9.6.1                                ...           4 years ago
  • 9.5.0                                ...           5 years ago
  • 9.4.1                                ...           5 years ago
  • 10.0.0-next.1                                ...           5 years ago
  • 10.0.0-next.0                                ...           5 years ago
  • 9.4.0                                ...           5 years ago
  • 9.3.2                                ...           5 years ago
  • 9.3.1                                ...           5 years ago
  • 9.3.0                                ...           5 years ago
  • 9.0.0                                ...           5 years ago
  • 8.5.2                                ...           5 years ago
  • 8.5.1                                ...           5 years ago
  • 8.5.0                                ...           5 years ago
  • 8.4.2                                ...           5 years ago
  • 8.4.0                                ...           5 years ago
  • 8.3.0                                ...           5 years ago
  • 8.2.0                                ...           5 years ago
  • 8.2.0-next.0                                ...           5 years ago
  • 8.1.2                                ...           5 years ago
  • 8.1.1                                ...           5 years ago
  • 8.1.0                                ...           5 years ago
  • 8.0.1-next.1                                ...           5 years ago
  • 8.0.0                                ...           5 years ago
  • 8.0.0-next.4                                ...           5 years ago
  • 8.0.0-next.2                                ...           5 years ago
  • 8.0.0-next.1                                ...           5 years ago
  • 8.0.0-next.0                                ...           5 years ago
  • 2.0.0                                ...           6 years ago
  • 2.0.0-beta.1                                ...           6 years ago
  • 0.2.3                                ...           6 years ago
  • 2.0.0-beta.0                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.2.2                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.4                                ...           7 years ago
  • 0.1.3                                ...           7 years ago
  • 0.1.2                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (5)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE