Guides / Process

A patch policy for small teams: time limits, automation, ownership

beginnerUpdated 26 Nov 2026964 words

Most small teams patch when someone remembers. That works until a known exploited bug sits on a public server for two months because the person who usually runs apt upgrade was on holiday. A patch policy fixes this with a few decisions written down once. The template below fits on one page, and a few commands automate most of it.

What the policy has to say

  1. What is covered: every server, VM and container image you run, and the applications you deploy on them.
  2. How fast each kind of fix goes in: time limits by risk.
  3. What runs automatically: security updates, image rebuilds.
  4. When reboots and restarts happen.
  5. Who does it, and who stands in.
  6. How exceptions are recorded: what you decided not to fix, why, and until when.

Time limits

A starting point that a team of one to five people can keep:

Finding Limit
On the CISA KEV list, internet-facing 3 days
On the CISA KEV list, internal 7 days
Critical or high, fix available, internet-facing or EPSS ≥ 0.1 7 days
Critical or high, fix available, other 30 days
Medium and low next regular update, at least monthly
Operating system release at end of life plan the upgrade before the date; no new servers on it

For comparison, CISA gives US federal agencies a due date with each KEV entry. In the second half of 2026 most new entries were due 3 days after they were added, the rest after 14 days. The guide on prioritising vulnerabilities explains the order behind this table.

Automatic security updates

Automate what does not need a human decision. Security updates for stable releases change as little as possible, which keeps the risk of breakage low.

Debian and Ubuntu, with unattended-upgrades:

sudo apt install unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades
cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

On Debian 12 and 13 the default configuration in /etc/apt/apt.conf.d/50unattended-upgrades installs updates from the security repository and the point releases of the main archive (label Debian); the unattended-upgrades guide shows the lines. The apt-daily and apt-daily-upgrade systemd timers run it. Automatic reboots are off by default (Unattended-Upgrade::Automatic-Reboot "false").

RHEL, Rocky, Alma, with dnf-automatic:

sudo dnf install dnf-automatic
sudo sed -i -e 's/^upgrade_type = .*/upgrade_type = security/' \
            -e 's/^apply_updates = .*/apply_updates = yes/' /etc/dnf/automatic.conf
sudo systemctl enable --now dnf-automatic.timer

The defaults on Rocky Linux 9 are upgrade_type = default, download_updates = yes, apply_updates = no and reboot = never: without the change it only downloads.

Alpine does not ship an automatic updater. A daily cron job running apk update && apk upgrade does the same; test it on a staging machine first, since Alpine does not keep security updates in a separate repository.

Containers and applications

Automatic host updates do not touch container images or application dependencies.

  • Images: rebuild every image at least weekly with docker build --pull, so it picks up the current base image, and redeploy. Pin base images by tag and digest, and let a bot (Renovate, Dependabot) propose digest updates.
  • Third-party images: update to new tags when they are published; an image you never pull again never gets fixes.
  • Application dependencies: keep lockfiles in the repository and let a bot open update pull requests. Merge security updates within the time limits above.

Reboots and restarts

Kernel, glibc and OpenSSL fixes only protect processes started after the update. Decide:

  • a regular reboot window (for example, one night a week or a month), during which kernels and core libraries become active;
  • that KEV kernel fixes reboot outside the window, within the time limit;
  • how services restart after library updates. On Debian and Ubuntu, needrestart lists them; on RHEL, dnf needs-restarting.

The guide security updates without downtime covers rolling restarts and live patching.

Ownership

Name one owner per server or group of servers, and a stand-in. The owner reads the daily or weekly report, decides on exceptions and makes sure reboots happen. For a team of one, the stand-in can be a written runbook and an external contact who has access in an emergency.

Exceptions

Some findings cannot be fixed in time: no fix exists, the fix breaks the application, a vendor appliance is waiting for its update. Record each exception with:

  • the CVE and the affected system;
  • the reason and any mitigation in place;
  • the owner;
  • a review date, at most three months ahead.

A plain text file in the repository of your infrastructure is enough. Scanner ignore files with a reason and an expiry date, such as .trivyignore.yaml with statement and expired_at, do the same job and make the finding come back when the date passes.

A one-page template

Scope: all servers in the inventory (infra/servers.md), all images in registry.example.com.
Automatic: unattended-upgrades / dnf-automatic for security updates, daily.
Images: rebuilt with --pull every Monday, deployed after the smoke test.
Limits: KEV internet-facing 3 days, KEV internal 7 days, critical/high with fix
        7 days if internet-facing or EPSS >= 0.1, else 30 days, rest monthly.
Reboots: Sunday 03:00 window; KEV kernel fixes within the KEV limit.
Owner: Anna (servers web-*, db-*), stand-in: Ben.
Exceptions: infra/exceptions.md, reviewed on the first Monday of each quarter.

Sources

Check your servers every day

The agent of Patchbrief reports the packages and settings of a server once a day; the digest names what to fix first.

Start free