I mean, people agitate against `curl blah.xyz | sh` for a reason.
And this, by any measure, is much worse. Also: 'By default iPXE does not compile in HTTPS support'
I mean, people agitate against `curl blah.xyz | sh` for a reason.
And this, by any measure, is much worse. Also: 'By default iPXE does not compile in HTTPS support'
While I know there is a risk involved, pragmatically that risk is very low given I’m just an anonymous individual very occasionally using this for personal devices.
You can actually run this service locally though. I did contemplate running their Docker container on my home server. However I use it so infrequently that even running their Docker container locally felt like an unnecessary additional piece of work.
These with even relatively dated 'netinstall' media can provide you with current installations. Then provide you with super fast updates.
I'm more familiar with doing this with RPM based distributions -- CentOS, Fedora, etc. It's basically a web server and rsync behind a [parameterized] systemd timer so you can centrally control existing/new mirrors
The results can admittedly be a little funny. If the netinstall is so far behind that RPM doesn't know what to do with the new packages, then yea - time to get a new one :)
I moved and I've been hard pressed to bother booting everything up and checking on it, and I have quite a lot of devices to manage
Hence my point that if I were using this regularly then I might want to invest in a more secure mirror. But when it can be years between my usages the benefits of self hosting are vastly outweighed but the cost (both in time and electricity) of managing it. Thus I’m willing to take that slight risk in this specific instance.
What’s the reason, exactly?
If you’re principled about only ever installing anything from vetted repos, then sure, your position is at least consistent. But my experience is that people who are appalled by pipe-to-sh are for whatever reason much less appalled by downloading random binaries or .deb files from blah.xyz and running them manually, which seems like just a more labor-intensive version of the same thing.
https://github.com/OpenNetworkingFoundation/ipxe-build/blob/...
(link is to a repo I worked on that uses Docker to build iPXE with various options enabled, and also embed mTLS certs)
The ‘piping curl into bash is dangerous’ meme is silly unless you’re actively reviewing shell scripts prior to execution. It’s no different to a git clone, pip install or npm update.