News for hackers. Stuff that matters.
Re:Malicious PyPI packages stealing credit cards and injecti... by jrockway on Tuesday August 03, 2021 @09:52AM (#28049170)
Security and availability don't have to be mutually exclusive. I remember in the early day of Go modules our Docker builds (that did "go mod download") would be rate-limited by Github, so a local cache was necessary to get builds to succeed 100% of the time. (Yes, you can plumb through some authentication material to avoid this, but Github is slow even when they're not rate limiting you!) Honestly, that thing was faster than the official Go Module Proxy so I kept it around longer than necessary and the results were good.

Even if you cache modules on your own infrastructure, you should still validate the checksums to prevent insiders from tampering with the cached modules.

I'll also mention that any speed increases really depend on your CI provider. I self-hosted Jenkins on a Rather Large AWS machine, and had the proxy nearby, so it was fast. But if you use a CI provider, they tend to be severely network-limited at the node level and so even if you have a cache nearby, you are still going to download at dialup speeds. (I use CircleCI now and at one point cached our node_modules. It was as slow as just getting them from NPM. And like, really slow... often 2 minutes to download, whereas on my consumer Internet connection it's on the order of 10 seconds. Shared resources... always a disaster.)

Re:Malicious PyPI packages stealing credit cards and injecti... by helsinki on Tuesday August 03, 2021 @09:56AM (#28049212)
Tangential non-sequitor:

> self-hosted on AWS

People forgot what self-hosting actually means.

Re:Malicious PyPI packages stealing credit cards and injecti... by jrockway on Tuesday August 03, 2021 @10:04AM (#28049314)
I disagree with that analysis. That basically means running some binary yourself, with the alternative being buying a SaaS product that is hosted by the developer. You may think that "self-hosting" means having your own physical server, but I have never heard anyone else use the expression like that.
Re:Malicious PyPI packages stealing credit cards and injecti... by paulryanrogers on Tuesday August 03, 2021 @10:06AM (#28049329)
Meanings can evolve over time. I tend to think of self hosted as installing from code and managing myself, whether on local hardware or remote.
Re:Malicious PyPI packages stealing credit cards and injecti... by jijji on Tuesday August 03, 2021 @10:29AM (#28049625)
The OP wrote "self-hosted Jenkins", which has a different meaning