Hacker News new | ask | show | jobs
by PurelyApplied 983 days ago
There should be a `curl | sh` in this, a security-oriented product? To demonstrate how badly you need it, perhaps?

Please don't pipe the Internet directly into your command line.

2 comments

Ah yes, because using a package manager to pipe the internet directly into our computer instead is so much better.
Yes. Proper package manager usually proceeds to install only signed packages. It means that usually OS maintainer has verified the purpose of the package.

It gives a quite lot more trust than running arbitrary content as shell script, without any third party verification.

Until you want to use software that it doesn't have, and then you are adding third-party repositories.

Which is still just code from the internet.

Verified using a public key that you acquire over HTTPS, the exact same channel that you trust with curl | sh
From above:

> , without any third party verification.

Certificate provider does not verify packages nor anything what is coming from there. Server even might be just proxy.

The exact same problem exists with the channel that you acquire the public key you trust from. You’re still fundamentally trusting HTTPS to the package provider - you’re just trusting it at a different point.
Usually keyring is separate package which is also signed with a key which can be verified from multiple different sources.

Of course, if you are a target of nation state attack, which fakes public keys from all sources by MITMn DNSs and servers, you might end up with the wrong package.

But that threat model is totally different.

I feel like "curl | sh is fine" has been explained so many times at this point idk how people still aren't on the same page. If you hate "curl | sh" so much I'm sure they can provide some other method of installation.