4 ms·
Sudo curl is terrible but is it really that much worse than downloading a dvd image and installing it? The main difference is how casually people give away the
by tinus_hn 7y ago
Sudo curl is terrible but is it really that much worse than downloading a dvd image and installing it? The main difference is how casually people give away the keys to the kingdom.
- jacobush 7y agoTo be fair there often is a key chain in place nowadays, for booting a PC. It's a little bit better even though I don't like how basically Microsoft controls the keys.
- Hitton 7y agoIt is worse. Notice that h2odragon didn't include "https" on purpose because of how many these install instructions do the same.
- jagged-chisel 7y agoDVDs also don’t implement https, and DVD images can download over http.
- zeveb 7y agoBut at least with a DVD you have the actual physical copy of what was installed, and you can examine it forensically after the fact, and you may even be able to use it as evidence of wrongdoing. You can't do that with some random file that you downloaded at some point in time (this, incidentally, is why in-browser crypto is hopelessly and forever broken).
- clarry 7y agoI can download DVD images over insecure transport and then check their signature. Not so if I'm piping code straight to shell from a http server.
- steerablesafe 7y agoI never saw a curl | bash install instruction without https.
- Hitton 7y agoYou are lucky. Last time I saw it here on HN less than week ago. When I called an author out about this I was called rude and ignorant and apparently doing so is "nasty" "especially since this is a well-known point of disagreement—not to mention well-trodden, therefore generic, therefore predictable, therefore tedious, and therefore mostly off-topic". The software in question was https://github.com/txthinking/nami https://github.com/txthinking/nami
- clarry 7y agoThe thread in question: https://news.ycombinator.com/item?id=22701891 https://news.ycombinator.com/item?id=22701891 Dang disappoints me again.
- irishsultan 7y agoOne issue with sudo curl is that it may end up your system in an unusuable (or unknown) state, even if the script you're fetching is not malicious, because your connection can be interrupted and bash will start executing even before the script is fully downloaded.
- vbezhenar 7y agoIt won't happen for properly written script.
- Someone 7y agoIt is a lot less likely, but it can happen when you first download and then execute a script, too. Disk read errors may prevent running the entire script or the script may run out of memory, disk space, or other resource limit such as the maximum number of open files or the maximum length of a file path.