4 ms·
Issue is here: https://github.com/yarnpkg/yarn/issues/5885 https://github.com/yarnpkg/yarn/issues/5885 The problem is that npm just migrated their registry to
by schneidmaster 8y ago
Issue is here: https://github.com/yarnpkg/yarn/issues/5885 https://github.com/yarnpkg/yarn/issues/5885
The problem is that npm just migrated their registry to use CloudFlare. Yarn already used CloudFlare, and had https://registry.yarnpkg.com https://registry.yarnpkg.com CNAME'd to https://registry.npmjs.org https://registry.npmjs.org. CloudFlare has a security restriction that one CloudFlare account cannot have DNS records pointing to another CloudFlare account, so npm moving to CloudFlare broke yarn's existing CNAME to npm's registry (thus breaking yarn).
- jessaustin 8y agoSorry but this is kind of funny. It would have been easy for the default value in the app to have been "https://registry.npmjs.org" https://registry.npmjs.org". This is an example of "every level of indirection can fail". [EDIT: removed unfounded speculation that CF wasn't necessary for yarn's requirements.]
- foobarbazetc 8y agoCF DNS is pretty good for a free service. Lots of annoyances to be sure but saying they’re not focused on it is kind of wrong. This is actually an issue with the CDN portion not the DNS portion.
- judge2020 8y agoBased on the (recent) comment on the issue [0], they use the Cloudflare proxy instead of an actual CNAME /and use workers to do yarn-specific changes on the edge / (see below). [0]: https://github.com/yarnpkg/yarn/issues/5885#issuecomment-392215450 https://github.com/yarnpkg/yarn/issues/5885#issuecomment-392...
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]
- arcatek 8y agoI work on Yarn. The message you're quoting is from the npm CTO. We don't do yarn-specific changes. The main reason we're using a mirror is because it was massively faster than directly querying the npm registry when Yarn got released. The difference decreased during the past year I think, but Cloudflare was still a bit ahead in most scenarios.
- foobarbazetc 8y agoYou can CNAME across CF accounts but you can’t CNAME a proxied record to another proxied record.
- ryanworl 8y agoFun fact: you actually used to be able to do this and it caused some security problems! There are probably zones out there that are still able to do it today from back when it was allowed.
- orf 8y agoWhat security problems?
- asadlionpk 8y agoI wonder that too. Circular cnames?