Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

public: support gpg-sign and gpg-key options #43

Closed
wants to merge 1 commit into from

Conversation

indutny
Copy link

@indutny indutny commented Apr 18, 2014

This is a WIP for adding signatures to the npm packages. Fully enabling it will require server changes too.

Let's discuss the approach here:

  • Does GPG seems a good idea for you?
  • How will that work on server-side? Will server store all user's public keys and be a PGP endpoint by itself?
    Or should users upload their public keys to their accounts manually with npm?

I did not do much, so hopefully you won't be biased to this because of me implementing part of it without approaching consensus. This is mostly a proof of concept.

@rlidwka
Copy link
Contributor

rlidwka commented Jun 18, 2014

I tried to implement the same thing last year, please check npm/npm#4016. But there's only verification part.

Why server has to be modified at all? There are a lot of public keyservers already.

@indutny
Copy link
Author

indutny commented Jun 18, 2014

@rlidwka because it should be able to accept packages to registry if the signature matches

@othiym23
Copy link
Contributor

See the discussion on npm/npm#4016, and also node-forward/discussions#29. I definitely want to get to package authentication / a better chain of custody for establishing package provenance, but don't think that GnuPG is the way to get us there. It's pretty unwieldy to make work in a cross-platform way, and then the npm community is obligated either to build its own web of trust or depend on somebody else's. We'd like to see something simpler, probably based on ssh keys and a very lightweight PKI tied to each registry in a very straightforward, explicit way (i.e. so private registries could have their own trust relationships and nobody's dependent on npm, Inc. for their PKI).

Also, this absolutely shouldn't be happening in the registry client, which should be a pure network client that doesn't know anything about how the packages are cached or built on disk.

@othiym23 othiym23 closed this Mar 16, 2015
@carlos8f
Copy link

We'd like to see something simpler

@othiym23 perhaps salty would be a good fit as a lightweight cross-platform PKI?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants