On Debian/Ubuntu servers I enable unattended-upgrades for the security pocket only, with automatic reboot disabled and a notification instead. Feature updates and major versions stay manual. The common failure is not the tool, it is forgetting that a kernel or libc update does nothing until the service or the machine restarts: needrestart (or checkrestart) tells you what still runs old code.

Also worth checking: apt-get -s upgrade weekly, so you see what is waiting.

What is your policy: fully automatic with reboots in a maintenance window, notify-only, or everything by hand? Any horror story with auto-updates?

Open-source agent that lists the versions exposed by a Linux host: https://github.com/AttackScout/attackscout-agent — I work on AttackScout.

  • Elvith Ma'for
    link
    fedilink
    1•4 hours ago

    Depends on the server. A small vm or lxc in my homelab only reachable from the local network? As needed but at least monthly. Done from an ansible playbook usually in batch.

    My cloud vps with several services exposed? Daily auto updates with reboots as needed, also some more checks for some edge cases that broke things in the past (e.g. package update deploys and reloads new SELinux policies but doesn’t require a reboot. Due to the reload of the policies all podman networks fail because their policies are volatile, so podman is instructed to rebuild the network on every auto update that doesn’t require a reboot)