Skip to content

Harden the update channel: untrusted listing, release-host allowlist, size cap, tag validation, stale-channel reporting #4011

Closed

Description

@pithead-developer

What's the problem

RAUC signing protects the bundle but not the release listing the rig reads over Tor. Nothing yet specifies a host allowlist, remote DNS through the proxy, a download size cap, or tag-string validation. A hostile path (exit node or compromised listing) could replay an old listing to freeze updates, or feed an oversized file or crafted tag string toward a URL or path.

What it impacts

Every appliance rig that updates itself. A frozen or poisoned channel is silent unless the check reports it.

How I found it

Skeptic review of the 2026-11-10 design. Reading lib/pithead/47-os-update-helpers.sh os_release_fetch shows coordinator-side fetch only; no rig-side equivalent exists, so the rules are not written anywhere. Whether GitHub release metadata can be pinned or signed further is unknown.

How important is it

High for 2.1.0, required before the rig updater ships.

It is blocked by #4007.

Acceptance criteria

  • The channel listing is treated as untrusted data; installation trust is the RAUC signature only.
  • Fetches are HTTPS only, to the release host only, through the SOCKS proxy with remote DNS (socks5h); redirects off that host are refused.
  • Tags must match a strict release-tag regex before use in any URL or path; version comparison is semantic (2.0.10 above 2.0.9), with a test.
  • A maximum bundle size is enforced during download.
  • The check reports the last-seen listing time and flags a channel that has not advanced as possibly stale or frozen.
  • Selftests cover each refusal, using local fixtures.

Possible solutions

  • Enforce these rules in the shared fetch helper used by the rig-side updater (preferred).
  • Add a signed manifest beside the bundle; larger change, needs release-process work, defer unless the stale-channel report proves insufficient.

Activity

  1. added this to the v2.1.0 milestone on Nov 10, 2026
  2. added
    enhancement
    appliance
    P3-hardening
    on Nov 10, 2026
  3. pithead-developer commented on Nov 12, 2026

    @pithead-developer
    ContributorAuthor

    Grouped with #4010, but PR #4044 does not close it: Its declared blocker pithead#4007 is still open, so it is left for a follow-up PR.. Released for its own pick.

  4. pithead-developer commented on Nov 13, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #4056.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-hardeningapplianceenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions