by karlshea · 3y ago · 0 comments
I get why there are people that don’t like how some installers do this, but this trope is really turning into the “but I don’t even own a TV” of OSS commentary.
Just use the Docker image if you don’t like it. Or get their appliance which actually supports ongoing development.
If the answer to cloud enshittification is “I know! I’ll use a different company’s solution instead of this open source project because I want to make an outdated stand against curl|bash” then I think the thought process is misguided.
Last I checked, the bare metal pip3 method was "always" going to be supported. So the "Just use Docker" comments ignore this.
The author complains about a lack of product leadership at Phillips, but HA has always been renown for ignoring their users.
All that being said, I find it a little odd that this article is somehow decrying HAOS as a worse alternative to a proprietary, anti-user black box developed by companies trying to squeeze more profit, just because they played fast-and-loose with some shell scripts at some point. (Aside: I just installed Homebrew on a new Mac today, and it's still just a curl | sh)
Most of the major consumer IoT vendors have had major security incidents (Wyze, Hue, Nest, Arlo, many others), and if nothing else, my little HAOS Rpi gets a little obscurity compared to the big names getting hit by script kiddies. Not to mention it's easy for me to keep it local-only and just join it to my Tailscale network.
But given all the allusions to HomeKit, I suspect the author has total faith in Apple to do it right (not a wholly misplaced assumption) and wants everything to just talk HomeKit.
Which we might actually get (in practice) as Matter makes inroads! Hell, I'd love for everything to talk HomeKit because HA can emulate a HomeKit Controller, and that means less cloud APIs. Win for everyone!
I'm running the docker container (since I already had a home server running docker containers), but a NUC with HAOS for my folks has been working great.
HA is one guy's pet project to goof around with the latest and greatest technologies.
Every plugin that is in that store must have a custom_components folder.
Drop that into the bind-mounted volume holding HA's configuration.yaml and restart. HA will pick it up automatically, and you'll be able to install it in Integrations and Devices.
Frankly, being anything other than super paranoid is almost a little reckless.
Also, shit-talking Home Assistant is a pretty weird take. I wouldn't write it in Python configured half in YAML and half in SQLite either, but ... not having to write it myself was the fun part.
"Running a software installer" in general seems just as insecure as "sudo | curl" whatever.
Anyone who really complains about curl | sudo is just doing it for nerd points, because I guarantee you they happily install all sorts of other software without "vetting" it.
And if someone caught someone doing trickery it'd be big news.
"Oh, that path is actually not a temp directory and requires permissions different than the user account?" - sudo
"Oh your firewall blocks my outgoing telemetry data?" - sudo
"Oh your firewall blocks my localhost request but I don't actually realize that's what happens but when I try it with sudo it just works everywhere?" - sudo
There are myriad reasons apps want root access, and almost none of them are good reasons, but that doesn't mean it's not simpler for them to get sudo from a user than it is to get dev eyes addressing (let alone understanding) the nuance.
It’s good practice to check anything that you’ll pipe to `sudo`, but this article’s level of paranoia is kind of self-defeating, no?
At some point, we all trust the things we run on our machines. We rely on communities — and our participation in them — to vet installations.
There is no perfect solution. Someone will always be misled.
But every single other reply seems to be either “well yeah obviously read the script first” or “how dumb, just use docker,” so like I said, maybe I’m the dumb one.
Even Microsoft has this published for the dotnet install tool:
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin <additional install-script args>
Microsoft.. The only company I have ever heard mention CRIME and BREACH and invokes their specter in .Net to do awesome things like.. Not let you enable websocket compression in SignalR.I periodically get told that a published browser userscript of mine is malicious or suspicious in emails simply because of the cautions and wording around the userscript installers themselves (it's just a css tweak, a theme), meanwhile the executables I have in the wild have generated zero similar feedback.
my theory is that since the script is more easily read that it attracts people to read it without any theory or knowledge of what they're even looking at .
I'll take a properly curated package in flatpak Fedora repos over a random script downloaded and piped into a root shell any day
$ curl https://whatever/foo.sh > foo.sh
$ sh foo.sh
if something goes terribly wrong you can examine foo.sh to try to figure out what happened and how to fix it. Even if foo.sh managed to delete itself you can just grab it again.After
$ curl https://whatever/foo.sh | sh
if something goes wrong and you then try $ curl https://whatever/foo.sh > foo.sh
to get a copy of the script to examine a malicious server can tell that you aren't piping to a shell [1] and give a non-malicious script.Since it takes an insignificant amount of effort to defend against this why not get in the habit of doing it?
Sure, don't do that as is - But it's not hard to just curl the script, read it to confirm it looks okay, then run it.
Smart Home 2023Q3 status: still for hackers only if you want more than a few lightswitches that you can just toggle from your phone, and even if you do want that, stick to one vendor + system only.
Highly recommended: Shelly gear, it is easy to configure and seems to be rock solid, I've got a bunch of their remote control radiator valves, several remote control relays and a tri-phase consumption/production meter. It all worked flawlessly since installation. And instead of a regular Pi I got one that was built into a keyboard. It was mostly because I couldn't get a bare one but in the end I think this was the better option.
I had something similar. Rock solid. Wired back haul. Nice manual. I knew it wouldn’t add $$$ to the house but I was a little surprised to find out it actually put a lot of people off. It had negative value as I had to rip it out and go analog.
Even nerds looking at the house wanted to do their own thing not maintain someone else's ideal and normies refused to spend ANY mental energy on understanding it.
Was eye opening!
I bought a SkyConnect adapter to support HAOS, but it's probably going to be unused for at least another year.
And yeah, it'll be another year or two before Matter/Threads really starts picking up steam. I'll just pick up a new dongle when there's 10 of 'em in that same timeframe.
(Disclaimer: my house is 800 sqft and I don't share any walls with neighbors. Zigbee is SUPPOSED to be mesh and Just Work assuming you have enough devices, but I can't speak from experience on that front.)
I’ve never dealt with Matter, though.
I love Home Assistant, but I regularly find myself opening the Hue and Lutron apps anyway. And I’m someone who runs a NUC. I don’t mind administration, but I don’t want to HAVE to do that when I’ve already paid for a thing that supposedly does most of that.
Her. Rachel is a woman. Pretty knowledgeable and experienced, too, so I would at least consider what she's saying.
tiny_installer.sh
#! /bin/bash
curl www.url-you-didnt-check.dev/the-real-installer.sh | sudo bash -