News for hackers. Stuff that matters.
Re:Post-mortem of this weekend's NPM incident by TomMarius on Friday January 12, 2018 @03:56AM (#16131465)
That would make a connection between Github and NPM. What if I want to use Bitbucket?
Re:Post-mortem of this weekend's NPM incident by krapp on Friday January 12, 2018 @09:22AM (#16132960)
I'm suggesting NPM integrate Github's authentication API into their publishing process, to validate that the author owns a namespace if NPM doesn't already do that (I don't know, I don't use NPM.) If Bitbucket allows the same, then that's OK. The point is to have authors control namespaces, and NPM control package names but only validate namespaces. If namespaces are just another string that NPM controls and that can be handed out, revoked or taken over like package names then using them doesn't solve the intended problem at all.

Since NPM uses a centralized registry, though, some limitations would have to be imposed, and allowing multiple sources would mean allowing for conflicts between github:google/package and bitbucket:google/package. Ideally, namespaces should be unique and canonical, and the simplest way to accomplish that is just to allow publishing to a single source.

Re:Post-mortem of this weekend's NPM incident by tylerhou on Friday January 12, 2018 @05:47AM (#16131925)
Keep a git mirror of your Bitbucket repository on GitHub.