Security updates and the update scan
Ringleader can set a workstation up to install operating system security updates on its own. It also checks once a day which of its packages have newer versions.
Ringleader can set a workstation up to install operating system security updates on its own. It also checks once a day which of its packages have newer versions. Turn security updates on for a workstation that stays up for weeks. Read the update scan to see what is out of date before you change a version.
Security updates
With securityUpdates: true, a workstation installs operating system security updates on its
own, once a day. On Debian and Ubuntu, Ringleader’s agent runs unattended-upgrades for the
distribution’s security suite. On Alpine, it installs the pending updates that Alpine’s
security database lists as fixes.
Security updates cover the operating system’s packages, and they move a system package to
a security fix whatever its updatePolicy says. The exception is a system package you
declare with a version, such as docker-ce or nodejs: security updates skip it. To let
it take security fixes, remove its version. A package you declare from npm, PyPI, Go or
mise moves only as its updatePolicy allows, as
Package update policies
explains.
On Debian and Ubuntu, a devtool from a package repository can take more than security fixes
when you set its updatePolicy to latest.
Operating system updates
lists which updates each devtool takes. For Node.js, this works only for a Node.js installed
from the upstream Node.js repository.
Daily update scan
A workstation that declares packages or devtools checks once a day whether newer versions
exist. The check changes nothing on the workstation. It covers the operating system’s
packages and the devtools you declare. It also covers every npm, pypi, go and mise
package you declare, whatever its updatePolicy. For a language package, a newer version
is one that its version allows and that is at least 24 hours old.
A workstation runs its first check up to an hour after it starts. The time differs from one workstation to the next. A check that comes before the workstation has received its configuration waits for the next day. Where an egress policy denies a package source, the scan records an error for that source and tries again the next day. Hosts a strict egress policy must allow lists the hosts each language package type reads.
Turn on security updates
To have the workstation install security updates on its own, set securityUpdates in
spec:
spec:
securityUpdates: trueTo install every operating system update rather than only security fixes, or to let the
workstation reboot when an update needs it, use the updates block that
Update settings
describes.
Read the update scan’s result
To see what the last scan found, run this on the workstation:
sudo ringleader-agent updatesIt prints JSON, with an entry for each installer, such as apt or npm. Each entry gives
the time of the last check, and the error text if the check failed. It also lists each
pending update, with its installed version, its newer version, and whether it is a
security fix.
Before the first check, the command fails with a “no such file” error, because there is no result yet. It fails the same way on a workstation that declares no packages and no devtools.
Next steps
- Package installation explains how to move a package to a newer version.
- Security updates and diagnostics lists the fields, including the diagnostics settings.