by darkhelmet · 3y ago · 0 comments
LetsEncrypt did us a huge favor by forcing automation vs having the guy who knows how to update the SSL certs every 4.9 years and left 6 months ago. I'd like to see the RHEL stability model go away too and force people to complete their automation and solve the problems of being able to rebuilding on demand - and actually doing it.
(I know, most HN folk are well disciplined but there are a lot of corporate cultures that are not.)
If a medical device or train works but needs support for years and years, should someone be constantly updating Linux? What about the software that runs on Linux and is tested there?
Considering just the modern cloud environment really limits where enterprise Linux runs and is useful. And, where there are calls for really long support contracts.
And HN is full of developers.
On a related note, the new EU Cyber Resilience Act will make upgrades a necessity even in the most constrained environments like pacemakers.
Yes. If you have embedded software in the field and it is running on hardware that has not reached its EOL, then you absolutely should be fixing bugs and vulnerabilities, doubly so when that hardware is attached to any kind of network, and triply so when the software talks to some kind of cloud services.
For most products, the customer should have the power decide when that hardware reaches EOL. In other words, it should be illegal (and severely punished) to disable or downgrade devices remotely, whether by abdicating the responsibility to maintain their software or by shutting down network services that those devices require to operate fully.
At the very least, that would prevent the proliferation of pervasive networking features that have no business communicating with anyone except their owners.
Ok, I'll be the unpopular person here.
Some bugs, even security ones: are ok.
I know that a very significant amount of software is mature these days, but sometimes upgrading causes different bugs, which are either harder to diagnose or even potentially more deadly.
I work in gamedev though, releases are tradeoffs with which bugs we accept.
It is very frequently the case that fixing one bug will incur several other bugs, it's just a case of understanding if they're worse or not.
For example: I don't care that my TV will have a 1/100 crash when launching the settings. I will just launch settings again-
Coincidentally: having everything constantly updating and internet connected is counter-intuitive. I used to spend entire evenings waiting for my PS4 to install new software on itself, but the PS2 (which contained many bugs!) worked much more often.
When you only have a couple of hours free time, spending it updating firmware means that I just don't update or use it.
Talk to Qualcomm and NXP and MediaTek and Broadcom and STMicroelectronics and....
Seriously, most of this is completely out of the product engineers' control. We can't update the hardware because our vendors (ALL of our vendors) control the kernel selection, almost never upstream, and never keep the board support packages up to date. Never.
IME the only exceptions to that rule are RaspberryPi (kinda sorta), AMD, and Intel. I only recently managed to finally extricate all my projects from Linux 2.6 which I considered a minor miracle. In 2023.
I mostly agree, but the severe punishment for not keeping software or services updated and running should be to release as much of the software as you own and a full hardware spec, well before you turn off the lights. People have to be allowed to get out of a business.
If you bought a product and the vendor said it will be supported for X years with updates — that’s all you get — X years. If you want to keep using a product for X+1 years, that’s fine, but that’s on you. I agree with your sentiment that hardware shouldn’t be disabled, but I don’t expect security updates past EOL. You can’t expect a business to keep supporting a product longer than they originally said they would (without compensation).
But these are enterprise products… support contracts last a long time. More than enough time to migrate (or past the time when you should be migrating). That’s part of why the long term support exists in the first place.
Where is your other embedded equipment???
I love that movie.
Usually you cannot do the same with a flight computer or a medical device controller.
I probably have some details wrong in the story above. I worked with those people, but never on the mainframe. I think the point stands though, if you don't do something often it can't be done.
Whenever there's a new distribution release it invariably breaks a bunch of things with the automation and you spend more time massaging your playbook so it works again than it would have taken to do it by hand
But even still, things like snaps, the way Debian handles system Python, and various little changes that have an outsize effect on automated deployment do cause a good amount of churn with automation.
However, paying an extra engineer to sort through all the changes possibly will.
On the other hand, there's some interesting trends like monokernels and minimal OS images that leverage services running off-machine instead of expecting so many local services removing some of the complexity/volatility (DNS, SMTP, federated login)
Both these things should not be an issue for anyone, just one or the other.
The rolling-release life is that things break constantly, during each week’s upgrade, but only a little bit at a time (and hopefully in staging). I don’t know if this is better for system administration, necessarily, but if you’re used to a stable-release dynamic of heavy discrete breakage and piles of backported patches, then you might be imagining the same scale of breakage every upgrade, which is isn’t the experience at all. So don’t discard the rolling-release option because of this preconception.
If you only update every few years, each update becomes a full project distracting from and conflicting with other projects.
That entirely depends on your operations model. There's a difference between, say, a nuclear power plant and a colo web hosting shop. With the latter, sure, no problem risking "minor" weekly breakage. With the former, I'd much rather have scheduled, heavily tested and carefully monitored maintenance windows.
And HN tends to underestimate the number of places like the former exist. Backbones of global finance and telecom, industrial facilities of all kinds, etc.
So how could this be accomplished?
A Nix-OS style approach coupled with an immutable OS core?
It is much harder to offer stability guarantees than to just publish updates in a rolling release fashion. And yet big organizations pay big money for that stability or the support to poke an enterprise software provider to get stuff working for their needs.
If you dont have comprehensive integration tests it's less risky just to not upgrade unless you really need to.
Exactly. Most of us do not have sqlite-level (https://www.sqlite.org/testing.html) testing so we just do the best we can with the resources we have.
This tends to make most "enterprise" shops risk-averse and the motto becomes "if it's not broke, don't fix it".
The issue is that a rolling-release approach does not have stability guarantees and forces everything to be upgrading all the time.
This does not work very well if you have specialized hardware or scientific equipment. If the drivers for your lab equipment work with a given release of an enterprise linux, you can't just jump on the next release until you have working drivers ready.
The same is true if you are working with some enterprise software which is only certified to work with a given release of an enterprise linux. Would you really want to run business critical software on a version of the operating system which is not (yet) supported by the vendor?
Also shout-out to Arch ... I've been using it since ... forever and never really had an issue in update.
How does Qubes OS work with drivers for specialized hardware such as scientific lab equipment?
Qubes OS doesn't really solve much in regards to stability and work required to update in a professional setting though, I'd say.
Folks who know such things better than I do, have suggested that it would've been far better at like a 64-week rollover (or just chop it to 52 and leave part of the code space unused), that way everyone would have to have a plan for it. Nobody could claim they don't expect their hardware to be in use 64 weeks in the future therefore they can ignore rollover.
The five year reign of RHEL7 was too long and did result in the very issues you bring up, but the ~3 year duration of RHEL 5,6 & 8 was short enough to avoid problems due to attrition in enterprise settings (unlike startups which have higher turnover, and not counting bus factors of one - no release cycle can't solve that).
And like others have pointed out, automation doesn't help as much when moving between releases. We have everything configuration controlled with kickstart and ansible and/or docker, and it is great for reproducibility within a release cycle, but it doesn't save much time or knowledge between releases. And Ubuntu is even worse in that regard despite having a shorter release cycle.
Admittedly, Yahoo was an extreme case. It never solved the really building problem - the culture from the early days was to compile, ship and forget. Once a RHEL-6 package was pushed to our dist/yinst system (packages), it would never be rebuilt unless it was 1) necessary, or 2) It was time to try and figure out how to build it on RHEL-7.
A lot of effort was spent in the later years to try and address this (by burning the old tech stack to the ground), but the culture was pervasive for the longest time. If 10-year-RHEL didn't exist we would have been forced to address the building processes.
If it's hard or error prone, then do it frequently until you get the process nailed down.
Major life lesson -- practice makes perfect.
The average person could practice violin for 500 years and never be invited to play Carnegie Hall.
The ability to stay abreast of major version updates is a wonderful attribute of many environments, but definitely far from all.
Industry specific - but finance world, we still had straggling RHEL5 machines up until a year or two ago and still have a bunch of RHEL6 machines and have basically NO RHEL9. The vast majority of the machines are all sitting on RHEL7/8.
I assume you mean major releases. Less common than minor releases but, especially for air-gapped equipment, it's not that unusual.
SSLMate is about as old as LE, they both started around the same time.
There are too many places where the current guard is going to have to die off before they even _start_ automation. So we're looking at 20-30 years.
LTS is the actual sane solution for these places, despite how utterly insane it is.
An example of argument that belongs to a weird class of arguments you at the same time want to agree and disagree.
As for 10% security - it’s more than 10%. Take my same example, the Switch. No bugs have been found to launch unapproved software in the last 4 years. There’s always the Secure Boot bug by NVIDIA in earlier consoles, but not even a WebKit bug will get you homebrew on a Switch. Kind of a big deal…
Another example of this would be Microsoft’s experiments with what would happen if an OS was built with all apps running in managed code - no compiled apps. Performance cost? They got it down to just 7% (though, admittedly, Midori never shipped, but it did host Bing in a few countries for a few years.)
Main issue is drivers, of course. It's hard to beat Linux. It contains open source drivers and server vendors usually target Linux and Windows with their driver efforts.
Not in my experience. There's still a guy who goes around and updates (manually) all the LetsEncrypt certificates every year.
LetsEncrypt certificates don't last for one year, they only last for 90 days, no exceptions. You may be thinking about something different.
Sounds like my org :)
But it can be really hard to change the culture at a place that has a long history of "ain't broke, don't fix it" engineering.
The places that don't do constant upgrades also don't usually have teams looking after that. If they time it right they can do with less people.
Of course it's less reliable not having as much active knowledge but I do think it can be cheaper if nothing goes wrong.
In my comment, I was thinking of well staffed (or at least close-enough to well staffed) teams making deliberate decisions to defer.
Those problems can also be mitigated with mandatory environment rebuilds which is trivial for a lot of setups with infrastructure as code.
At the extreme end, you have Kubernetes/CNCF where 6 months go by and you're many versions behind with a huge changelog of breaking changes you have to fix first. Stable APIs and stable ABIs are very useful here (which enterprise Linux provides).
Upgrades however are a different story. The major version changes require a ton of testing and manual massaging. This is why enterprises like to have that infrequently. For the systems that are easier you can still choose to follow the releases quickly.
Because security patches are being back ported is usually not a real issue.
In this model, what happens when the next Python2->Python3 breaking change comes along?
Also, Enterprise Linus is one of the reasons (definitely not the only) that the migration took such a long time. Too many enterprise shops that stuck with Python 2 because it's the lazy thing to do. The tech debt grows every year you don't move with the ecosystem.
How far down does "own your application environment" extend? How about libc? What is the role of the underlying OS?
It depends on the needs of your application.
>> How about libc?
If you need to make sure the underlying libc has what you need, you must either bring your own libc or have sufficient feature test macros and adapters to account for possible differences.
>> What is the role of the underlying OS?
It depends on what the application requires. What operating system features, if any, do you require? Do you have any timing or scheduling requirements that are sensitive for your application? Do you need real-time responsiveness?
How does the operating system handle failure scenarios? What guarantees, if any, does it make when hardware fails? Is it okay for your application to crash if a portion of the computer's memory or disk borks?
Ideally none, with scratch containers for applications and the bare minimum running under your orchestrator which becomes your main interface.
This is known as the out-of-the-loop performance problem. [1]
[1] https://en.wikipedia.org/wiki/Out-of-the-loop_performance_pr...
The main issue is that certificates should really be automated by every web server by default. At least for those with public IP addresses. There are servers like Caddy which implemented it, but it should be basic feature that just works without any additional configuration.