bufferoverflow / verdaccio-gitlab

private npm registry (Verdaccio) using gitlab-ce as authentication and authorization provider
MIT License
160 stars 55 forks source link

Authentication using SSH keys/tokens #51

Closed marco-silva0000 closed 6 years ago

marco-silva0000 commented 6 years ago

My team uses ssh keys for pulling and pushing from gitlab.com, and I've made a docker integration that copies those from the user's .ssh folder to the docker environment, gets the private projects and moves on.

We are now experimenting with using verdaccio instead of git for som sub projects and components, and I have it working with PAT, but I can't have this in an automated way, unless we implement some standard for storing the user's name and token.

It would be nice for verdaccio gitlab to work with either SSH keys or deploy keys as an authentication method for this use case, I'm not sure if the gitlab.com infrastructure would allow such thing, but I think many users would appreciate it.

dlouzan commented 6 years ago

Gitlab does not support interacting with the API with ssh keys by definition, those are used for ssh connections and the API is REST HTTP.