-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the role of 'registry.yarnpkg.com'? #889
Comments
Right now it's just a reverse proxy to |
Is there any way to change which registry yarn points to by default? Our organization would love to use Yarn internally, but we have JFrog's Artifactory setup as an npm proxy and internal package store already. Being able to point Yarn towards our Artifactory instance would make for 100's of happier devs 😄 |
@obogobo |
@egoist seems to be the right command! doesn't quite work for us yet but it's probably on our end. Thanks! |
I get how the abstraction of a reverse proxy allows for some future flexibility, but for now the extra layer adds an additional point of failure both for network reliability and also for DNS or infrastructure compromise. Isn't it the case that the checksums that are checked against are also downloaded through registry.yarnpkg.org? So if your DNS or hosting is compromised, both packages and checksums could be modified to match. The focus on offline/no-network/cached installs is a step forward for security in the NPM eco-system, but adding another point of failure and compromise to network installs is a step back. If the checksums were downloaded directly from registry.npmjs.org while the code was downloaded through your reverse proxy, that would provide a cross-check against both services. |
@egoist i still see |
Given the issue that arose today with the CloudFlare outage. I think we should chat about this again. It certainly seems like a case of nobody's fault, and certainly not yarn's. However this service seems at the least unnecessary, likely reducing performance adding another hop, and at worst a potential security vector. Of course, I could edit the registry on my local, but I collaborate with lots of other developers on many projects. I (frankly) would rather not have my I think if yarn wants to start adding server-side helpers it can take advantage of there is some great potential benefits, but if there is nothing right now, why do we default to this proxy? We could always change the default later when that functionality is added. EDIT: I found out this isn't a proxy but a CNAME. I don't think this changes anything though. |
The flip side is that |
Is |
What is the difference from registry.npmjs?
Does it have some new Features?
It would be nice if there is an open source version of a yarnpkg registry server. so some one can set itsown private yarnpkg server.
PS:
As the Features describe:
supports mixing registries.
How to set this? Can i set different packages to different registrys by config file?
The text was updated successfully, but these errors were encountered: