Skip to content

Ubuntu patch and reboot posture: what to build next, and why #663

Open

Description

@vladimirrott

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-server is 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-status and the pro api u.pro.packages.* endpoints. SysKnife's ProStatus shows 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-upgrades settings, 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.

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

  1. added
    enhancement
    maintainer-only
    on Oct 26, 2026
  2. self-assigned this
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementmaintainer-only

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions