SabaKore

Home / Articles / Security

A Self-Hosting Pitfall: What Happens When You Stop Updating

If you run it yourself, updating is your job too. This article covers how skipping updates leaves you unable to upgrade, what to do before an update, and how to choose a frequency you can sustain.

Ren, a junior infrastructure engineer

Ren

I'm afraid things will break with every update, so I've left it alone for a while...
Procura, a cloud AI robot who explains

Procura

I understand the feeling. But leaving it isn't putting it off; it's getting worse. And in this field, the more you let updates pile up, the harder they are to apply.

If you let them pile up, you can't upgrade

Updates get easier the more often you do them. If you let them pile up, you run into dependencies where you can't skip an intermediate version, or the way settings are written has changed, so there are more problems to solve at once. And just when that happens, the feeling of "it's working, so I don't want to touch it" gets stronger, and they pile up even more.

Procura, a cloud AI robot who explains

Procura

Most software isn't designed to be updated by skipping versions. Some need to be upgraded one step at a time, in order. The longer you leave it, the more steps there are.
  • From one version back, you can often upgrade directly
  • If you're several steps behind, you need to go through the intermediate versions
  • The time spent looking up the procedure becomes longer than the update itself
  • In the end it reaches a state where rebuilding is faster

The danger of neglected software

Wilson, the security guard

Wilson

...For self-hosted software, information about published weaknesses circulates too. Finding neglected ones is an easy job for me.
  • The more users a piece of software has, the more widely information about its weaknesses spreads
  • If it's exposed to the internet, it gets scanned for automatically
  • "A small server like mine won't be targeted" doesn't hold
  • Apply updates not for features, but for protection

What to do before an update

Procura, a cloud AI robot who explains

Procura

What's scary is that you can't go back. If you create a state you can go back from, updating stops being scary. The procedure can be the same every time.
  • Take a snapshot
  • Take a copy of the database
  • Read the update notes for any cautions
  • Run it at a time when there is little traffic
  • Check that things work after the update
Procura, a cloud AI robot who explains

Procura

Do at least the first one, always. If you know you can roll back if something goes wrong, you can go ahead with confidence.

Choose a frequency you can keep up

Checking every day won't last. Setting a day and applying everything together about once a month is realistic. What matters isn't a high frequency but not letting it lapse. Put it on your calendar and make it something that takes 10 minutes, and it will last.

  • Fix a day, such as once a month
  • You can also split it: the OS updates automatically, and applications are updated by hand
  • Apply only security fixes early
  • Set things up so you receive notices about updates

Receive update notices

Procura, a cloud AI robot who explains

Procura

If you don't notice that an update has come out, you can't apply it in the first place. Set things up so you receive notifications. It takes little effort.
  • Subscribe to update information from the distributor
  • If a serious weakness is found, that notice arrives too
  • If you run in containers, updates to the base image are also something to track
  • Don't forget that application updates exist separately from OS updates
Procura, a cloud AI robot who explains

Procura

The fourth is a blind spot. Even if you've set the OS to update automatically, the software running on top of it stays old unless you upgrade it yourself. Keep in mind that both are subject to updates.
Ren, a junior infrastructure engineer

Ren

So the more I let it pile up, the harder it gets. I'll fix a day once a month.

This article is translated from the Japanese original. If the two differ, the Japanese version is the one we keep up to date.