Guides / Process

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

beginnerUpdated 26 Nov 2026987 words

Without a written policy, patches go in when someone remembers, and a known exploited bug can sit on a public server for weeks while the person who usually runs apt upgrade is on holiday. A patch policy is a few decisions written down once. The template at the end fits on one page, and the commands below automate most of it.

What the policy has to say

Part What to decide
Scope every server, VM and container image you run, and the applications you deploy on them
Time limits how fast each kind of fix goes in, by risk
Automation what runs automatically: security updates, image rebuilds
Reboots when reboots and restarts happen
Ownership who does it, and who stands in
Exceptions 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. 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: 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: 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

Alpine does not ship an automatic updater. A daily cron job running apk update && apk upgrade does the same (security updates on Alpine); 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.

Rebuild your own images at least weekly with docker build --pull, so that they pick up the current base image, and redeploy. Pin base images by tag and digest, and let a bot (Renovate, Dependabot) propose digest updates (keeping Docker images updated).

Move third-party images to new tags when they are published; an image you never pull again never gets fixes.

Keep the lockfiles of your applications 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.

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 Vulnpocalypse collector reports the packages and settings of a server once a day, and the digest lists what to fix, most urgent first.

Start free