verdaccio-kuzzle
v1.3.0
Published
Authenticate on verdaccio using kuzzle credentials
Readme
About
Verdaccio kuzzle
This is the official Kuzzle verdaccio authentication plugin.
This plugins allows you to connect to verdaccio packages proxy registry using kuzzle credentials.
Authentication
The plugin supports two authentication schemes that coexist (PaaS IAM migration, ADR-0001 Jalon F). The npm password selects the path:
Scoped API key (recommended). When the password starts with
kapikey-, the plugin authenticates to Kuzzle with the key as its token and calls the PaaS console endpointregistry:resolveAccess. The console validates the key against itsapi-key-linksbinding (a revoked key is rejected), resolves the(identity, project)it maps to for traceability, and returns the access decision. Create a scoped key in the PaaS console (project → API keys) and use it as your npm password:npm config set //<registry-host>/:_password "$(echo -n 'kapikey-…' | base64)" npm config set //<registry-host>/:username paasUsername / password (deprecated). The historical
locallogin checking the globallicense-userprofile. It still works during the transition but is deprecated: clients get annpm-noticeon responses, its usage is logged server-side, and it is removed with the legacy flow at migration step 8. Migrate to a scoped API key.
Configuration
auth:
kuzzle:
url: localhost
port: 7512
# Optional: override the deprecation notice shown to legacy clients.
deprecationNotice: "Migrate to an API key — see https://…"Kuzzle
Kuzzle is an open-source backend that includes a scalable server, a multiprotocol API, an administration console and a set of plugins that provide advanced functionalities like real-time pub/sub, blazing fast search and geofencing.
- :octocat: Github
- :earth_africa: Website
- :books: Documentation
Compatibility matrix
| Kuzzle Version | Plugin Version | | -------------- | -------------- | | >= 2 | 1.x.x |
Tests
To test it with a local kuzzle
docker-compose up --build- Then Kuzzle should be up at port 7512
- Then Verdaccio should be up at port 4873
- Create a user on kuzzle, then try to login with it on verdaccio UI.
