Skip to content

Cover the Go CLI in release signing, verification and the vulnerability scan, and record the toolchain and module pins #4530

Backlog

Description

@pithead-architect

What's the problem

The parent criteria: "Release signing and verification cover the new binary; toolchain and module pins are recorded; the existing vulnerability scan passes on it" and "CI and bench Go toolchain provisioning and a vendored or offline module source are stated" (pithead#4215). Today the signing path (scripts/release/appliance.sh: signed RAUC bundle, keyring compare, sha256 sidecars) and the scan paths (.github/workflows/os-rootfs.yml, trivyignore-watch.yml) know nothing about a Go CLI artifact, and the pins (the golang:1.26.11-trixie image digest in os/rootfs/Dockerfile, the go module, the shell workflow's Go step) are scattered with no stated record.

What it impacts

The release pipeline and signing, supply-chain checks for every piece that ships a binary, and reproducible image builds under the bench's egress rules.

How I found it

Split from pithead#4215 after reading scripts/release/appliance.sh and bundle.sh, os/rauc/mkbundle.sh, .github/workflows/os-rootfs.yml and trivyignore-watch.yml, and the pin blocks in os/rootfs/Dockerfile.

How important is it

Medium-high: the release pipeline must not ship an unsigned or unscanned binary, and the pins are what make the build reproducible offline.

Acceptance criteria

  • Release verification fails when the shipped Go CLI's digest does not match the bundle/checksum record — demonstrated with a negative control, not only a green run.
  • The existing rootfs/artifact vulnerability scan passes with the binary present; no ignore entry is added for it.
  • One doc states together: the pinned Go toolchain (image + digest, or the CI version pin), the module source situation (stdlib-only states that no module fetch is needed, or names the vendored source once the module gains a dependency), and who supplies the toolchain for the image build versus the shell workflow's Go step.
  • A CI check fails when the stated pins drift from the pins the build actually uses.

Possible solutions

Fold the binary into the existing sha256-sidecar and verify loop in scripts/release/appliance.sh and the bundle file lists; let the existing trivy rootfs rows cover the shipped binary; add a scripts/release/resolve-pins.sh-style pin record plus one tier-1 drift guard.

Parent: #4215

Worker brief: Test tier: tiers 1-3 on GitHub (scripts, workflows and docs that never run on a box; the vulnerability-scan rows are CI rows). Name in the PR body why no tier-4 run is needed; if the change alters bundle contents that deploy to a box, that changes the row.
Chunk 3/3 of pithead#4215. Depends on the sibling chunk that ships the binary — there is no artifact to cover until /opt/pithead/go/bin/pithead exists in the image; block on it rather than signing a placeholder.
Do: make release verification cover the Go CLI's digest (fail on mismatch, proved by a negative control); keep the existing vulnerability scan green with the binary present (never add an ignore entry); write the one place that states the toolchain pin, module source status and CI/bench provisioning; add a tier-1 check that fails when those stated pins drift.
Constraints: never run scripts/release.sh; branch from origin/develop-v2.1.0 and open the draft PR at the first working commit; no comments in code; use the repo's real CI commands as proof and quote them.

Activity

  1. added this to the v2.1.1 milestone on Nov 25, 2026
  2. added
    needs-triage
    size:M
    on Nov 25, 2026
  3. added
    bug
    on Nov 27, 2026
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

    bugneeds-triagesize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions