RFC: add registry per package per organisation#217
RFC: add registry per package per organisation#217baloran wants to merge 1 commit intonpm:latestfrom
Conversation
|
one concern raised by @wesleytodd in the original RRFC:
|
|
An example of the hazard:
This would result in all the There are many more scenarios depending on configurations (I will not post publicly about ones which I have the most direct knowledge of) where this can happen, some which require even less bad luck to hit. |
|
It seems like this entire hazard goes away if we don't support unscoped package names with this feature (or warn if we see those to point out that they're hazardous for npm v6 users). |
|
It would still be a hazard if the scope chosen internally matched a public scope, although that’s unlikely. |
Well, the use case in the OP here is actually a scope that is both internal (on the github packages registry) and external (on the npm public registry). But I think maybe what you're suggesting is that it'd be a hazard if the scope chosen internally matched a public scope that you do not control. I think the plan here is to move forward with this RFC, but with the provision that it only can apply to scoped packages, in order to mitigate the hazards brought up by @wesleytodd and @ljharb. Additionally (and what might address this in a better way, albeit it with a lot more implementation cost) we should write an RFC for a |
|
I've faced with the same issue https://gist.github.com/azu/31530916cbce0fd2fc1f4d8f6cf0fae1 😢 |
|
There wasn't a way to get over the security implications that this would raise. Addressed a different way in #314. |
tl;drWe want to install some private package from github registry and some public package from npm registry with the same scope organisation.
Why
We use multiple registry, npm for public package, github for private package. We use multiple mono repos and want to host on github registry for simplicity. But we want to share with the community our public package on npm because everyone have his habits on npm registry.