Skip to content

Update Gaps 0.2.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 12:46
Immutable release. Only release title and notes can be modified.
946644f

Network data: security issues Ubuntu has not fixed yet, fixes upstream and newer versions elsewhere
in Ubuntu, for selected packages, off until set up on the page. And Cockpit's menu shows the state
of Update Gaps next to its entry.

  • Radar: update-gaps-radar.service runs once a day as an unprivileged user of its own
    (DynamicUser, no capabilities, exposure 1.1) and writes /var/lib/update-gaps-radar/radar.json.
    It fetches Canonical's CVE OVAL of the release (only the release name leaves the server), the
    published versions of the selected source packages from Launchpad, and the releases of a fixed
    list of projects from GitHub. A source that fails keeps its last answers, marked as such; a
    service that asks to slow down is left alone for that run.
  • Selected packages: a fixed list (Cockpit, OpenSSH, sudo, Docker, containerd, runc, restic,
    skopeo, nginx, Caddy, WireGuard) and packages installed by hand from universe and multiverse.
    The root scan works the selection out itself and reads radar.json as data only.
  • New cards: “Security issues Ubuntu has not fixed yet” (open CVEs with Ubuntu's priority, and
    fixes newer than the installed version that do not reach this server), “Fixes upstream, not here
    yet” (newer releases whose notes name a CVE or GHSA; a fix still open in Ubuntu is marked) and
    “Newer versions elsewhere in Ubuntu” (another pocket of this release, or a later release).
  • The page: the overview shows the network data (off, daily, last fetched) with Set up, Fetch
    now and Switch off; the set-up dialog says what leaves the server. Old network data are told.
  • Status for the Status Board: a cve item (info, warning for high priority or a fix that
    does not reach the server, danger for critical) once the network data are set up.
  • gaps-ctl.sh: the verbs install radar, remove radar and radar; its status names the
    radar's timer and data.
  • Status in Cockpit's menu: the entry “Update Gaps” carries Cockpit's own status icon (blue:
    something to know, yellow: something to do or a state older than 24 hours, red: support ended or a critical security issue)
    with the summary of the status as its tooltip, in the session language; nothing found, no icon.
    It is judged as the Status Board judges the status: never better than an item, and an item older
    than its stale_after at least a warning, checked again the moment it turns old. For this
    Cockpit loads the page hidden right after the login (preload, as for its own Software Updates
    page); until it is opened, the page only watches /var/lib/update-gaps/status.json
    (plugin/menu-status.js). The first check by itself, the helpers and the state file wait until
    the page is shown.
  • Fix: a link while the page is hidden. Cockpit keeps a loaded page and changes only its
    location when the Status Board jumps to it again, and it may do so before the page is shown
    again. The scroll to the card then came too early and was lost; it now waits until the page is
    shown.
  • Tests: test/page_test.js: the icon for the recorded hosts in English and German, no file
    and a broken one, an item worse than the whole, a state out of date (in both languages, with the
    time), what the board ignores, the check again at 24 hours, the page loaded hidden (nothing run,
    the first check only once shown, no second start), a link that comes while the page is hidden.
    The Cockpit job in CI: the page loaded hidden after the login without checking, the icon as
    gaps-status.py status says (English, and German before the page is opened), and cockpit.jump
    into the loaded page, to another card while it is shown and into it while it is hidden.

Install

From the Azentrius package repository (Debian, Ubuntu): set up https://packages.azentrius.com once, then install Update Gaps in Cockpit under Applications, or with sudo apt install cockpit-update-gaps. The repository takes this release within an hour.

From the files of this release: download the package and SHA256SUMS, check that the download is complete and that this repository's release workflow built it, then install it:

sha256sum --ignore-missing -c SHA256SUMS
gh attestation verify cockpit-update-gaps_0.2.0-1_all.deb --repo Azentrius/cockpit-update-gaps
sudo apt install ./cockpit-update-gaps_0.2.0-1_all.deb

Update Gaps checks Debian and Ubuntu (apt). Fedora, RHEL and openSUSE follow later; there is no .rpm yet.