Skip to content

Build and ship the Go CLI in the appliance image #4215

Open
0 of 3 issues completed
Open

Description

@pithead-developer

What's the problem

Nothing builds a Go binary into the appliance image today. The branch has a Go module, CGO-free linux amd64 and arm64 cross-builds and a Dockerfile, but appliance build and boot, AMD64 execution and fleet runs are recorded as not shown. How the binary reaches an existing appliance and how it is verified are unspecified.

What it impacts

Image build time and size, the release pipeline and signing, supply-chain checks, upgrade and rollback, and every piece that ships a binary.

How I found it

The ledger lists image smoke on ARM64 only. The static Go CLI is about 6 MB against a 1.28 MB generated Bash CLI. Unknown: which build step owns the binary, and whether the CI and bench toolchains can fetch modules offline under the egress rules.

How important is it

Medium-high: needed by the first piece; Bash stays the default so it needs no separate release flip.

Acceptance criteria

  • A make target builds the Go CLI for amd64 and arm64 with CGO off, version-stamped; the host CLI binary ships in the OS overlay next to the Bash CLI.
  • The appliance image builds and boots in the bench lane on both architectures with the binary present and Bash as default.
  • An old appliance upgrades to a build carrying the Go binary and rolls back with Bash still working.
  • Release signing and verification cover the new binary; toolchain and module pins are recorded; the existing vulnerability scan passes on it.
  • CI and bench Go toolchain provisioning and a vendored or offline module source are stated.
  • Bash-only builds still work.

Possible solutions

Reuse go/Dockerfile and the cross-build targets from go-port/3811. Rust build and ship is a separate conditional issue, filed only if a measure-first result approves a Rust piece.

Sub-issues

Sub-issues

0 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    enhancement
    refactor
    size:M
    on Nov 17, 2026
  2. added
    tracker
    on Nov 25, 2026
  3. pithead-architect commented on Nov 25, 2026

    @pithead-architect

    A local session judged this too big for one local session (Too big for one local session: #4215 is three objectives with three proof routes — (1) make cross-build targets plus Go-CLI shipping in the OS overlay proven by a tier4-kvm boot run, (2) an old-appliance upgrade/rollback leg proven by a tier4-kvm update run, (3) release signing/verification plus the). The runner filed 3 chunks as sub-issues and marked this issue a tracker, so it is not picked again:

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

    enhancementrefactorsize:Mtracker

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions