Earlier quoted context omitted.
That's the goal, but it's not feasible in e.g. professional settings. Much easier said than done, unfortunately.
I agree it's hard. But it's actually easier in professional settings. There are funds and you don't have an excuse to be lazy. At minimum whatever you are working on should be built in docker. The package installation then would happen during the image build step. Yes it's easy to break out of the isolation environment but i am betting this malware does not. NPM tokens should exist in some configuration/secret manage…
Shai-Hulud Returns: Over 300 NPM Packages Infected
491–500 of 797 posts
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#492Earlier quoted context omitted.
> Not sure why clap isn't std at this point. The std has stability promises, so it's prudent to not add things prematurely. Go has the official "flag" package as part of the stdlib, and it's so absolutely terrible that everyone uses pflag, cobra, or urfave/cli instead. Go's stdlib is a wonderful example of why you shouldn't add things willy-nilly to the stdlib since it's full of weird warts and things you simply shou…
Go is also famous for encouraging a culture of keeping down dependency count while exposing a simple to use package manager and ecosystem.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#493Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#494Earlier quoted context omitted.
> Because updates don't just include new features but also bug and security fixes. This practice needs to change, although it will be almost impossible to get a whole ecosystem to adopt. You shouldn’t have to take new features (and associated new problems) just to get bug fixes and security updates. They should be offered in parallel. We need to get comfortable again with parallel maintenance branches for each major…
Semver was invented to facilitate that. Only if everyone adhered to it.
First time I've heard that. How does semver facilitate backporting?
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#495Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#496Earlier quoted context omitted.
2020 State of the Octoverse security report showed that .NET ecosystem has on average the lowest number of transitive dependencies. Big part of that is the breadth and depth of the BCL, standard libraries, and first party libraries.
The .NET ecosystem has been moving towards a higher number of dependencies since the introduction of .NET Core. Though many of them are still maintained by Microsoft.
Even some of the Microsoft.* namespaces have properly moved into the BCL SDKs and no longer show up in dependency lists, even though Microsoft.* namespaces originally meant non-BCL first-party.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#497"No Way To Prevent This" Says Only Package Manager Where This Regularly Happens
Okay then, tell me a way to prevent this.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#498Serious question: should someone develop new technologies using Node any more? A short time ago, I started a frontend in Astro for a SaaS startup I'm building with a friend. Astro is beautiful. But it's build on Node. And every time I update the versions of my dependencies I feel terrified I am bringing something into my server I don't know about. I just keep reading more and more stories about dangerous npm packages…
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#499Earlier quoted context omitted.
Everything runs in the container and cannot escape it. Its like a sandbox. You have to make sure you're not putting any secrets in the container environment.
You are just reducing the blast radius with use of podman; you will likely need secrets for your app to work, which will be exposed regardless of the podman approach.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#500There is no easy solution to these problems. The solutions that are effective also involve actually doing work, as developers, library authors, and package managers. But no, we want as much "convenience" as possible, so the issues continue. Developers and package authors should use a lockfile, pin their dependencies, be frugal about adding dependencies, and put any dependencies they do add through a basic inspection…