Repository navigation
Description
SysKnife can change an Ubuntu host's patch state (AptUpgrade, ConfigureUnattendedUpgrades, UbuntuReleaseUpgrade) but reports little of it. The questions an operator asks before and after patching ("am I covered?", "is it patching itself?", "what needs a restart?", "which kernel am I on?") have no typed read-only answer. This issue is the reasoning; the pieces are filed separately and linked below.
What comparable tools do
- Red Hat's
linux-mcp-serveris read-only and built around service status, logs, block devices and processes. SysKnife already covers most of that surface; its Ubuntu patch posture is where SysKnife can be ahead rather than level. - Ubuntu's Pro client answers "am I covered" through
pro security-statusand thepro api u.pro.packages.*endpoints. SysKnife'sProStatusshows the subscription only. - On 24.04, needrestart restarts services itself after apt runs, and the thread has reports of MySQL and nginx downtime from it. SysKnife's apt actions pass
NEEDRESTART_MODE=a(crates/sysknife-daemon/src/actions/apt.rs:39) and the preview already warns about it, but nothing lets an operator ask what is stale before deciding. - Checking that unattended-upgrades works takes four reads: the
20auto-upgradessettings, the apt timers, the log, and a dry run. An active service unit proves nothing. - Landscape sells this posture at fleet scale; Fleet plan and execute: design and order of work #617 is the fleet path here.
What SysKnife has at e99a536
AptListUpgradable (plain apt list --upgradable, no security split), ProStatus (pro status --all), LivepatchStatus, CheckPendingReboot (reads /var/run/reboot-required), ConfigureUnattendedUpgrades (write-only). No needrestart, security-status, pro api, unattended-upgrades log or kernel inventory read anywhere in crates/.
The pieces
All typed, read-only, Low risk, Observer, and Ubuntu-scoped in UBUNTU_ONLY_ACTIONS unless the issue says otherwise. Each needs the usual catalogue, prompt and action_consistency wiring.
- ProSecurityStatus: report security-update coverage as structured data from pro api #679
ProSecurityStatus: security coverage as structured data - UnattendedUpgradesStatus: report whether automatic patching runs on schedule #680
UnattendedUpgradesStatus: is automatic patching running - NeedrestartList: show which services need a restart, without restarting them #681
NeedrestartList: what needs a restart, without restarting it - InstalledKernels: list installed kernels, the running one, and /boot headroom #682
InstalledKernels: kernels on disk, the running one,/bootheadroom - ListFailedUnits: list failed systemd units of every type in one call #683
ListFailedUnits: failed systemd units of every type (cross-distro)
Out of scope for now
usg audit (CIS): it writes reports under /var/lib/usg, can run for a long time, and its entitlement rules need a primary source. It gets its own issue once the read-only pieces above exist.
Activity