Skip to content

Registry supply-chain: signed releases, checksums, source pinning, permission inspection #8

Closed

Description

@scttfrdmn

Problem

spawn plugin install github:org/repo/tool and registry installs execute third-party code locally and as root on the instance. There is currently no signing, checksumming, or pinning story documented, and questions the review raised are unanswered: does a version resolve to a git tag/release/branch/manifest? are files checksummed? can a tag be moved? are transitive downloads verified? is the resolved source recorded on the instance?

Proposed shape

  • Signed registry releases + checksums for plugin artifacts
  • Source pinning (resolve + record the exact commit on the instance)
  • Permission inspection surfaced pre-install (pairs with spawn#387 plugin inspect and spawn#388 permissions: block)

Also: strategic registry expansion

The current four plugins (tailscale, rstudio-server, globus-personal-endpoint, spore-sync) prove the model across four shapes. Strong next candidates that demonstrate reusable strengths: JupyterLab, code-server, Docker/Podman, NVIDIA container toolkit, DCV, SSM setup, CloudWatch agent, Mountpoint-for-S3 / rclone, VS Code tunnel, Slurm client, GitHub Actions runner.

Raised by an external security/architecture review. See spawn#387/#388.

Activity

  1. added
    enhancement
    on Jul 19, 2026
  2. scttfrdmn commented on Jul 19, 2026

    @scttfrdmn
    ContributorAuthor

    Design RFC drafted in PR #9 (docs/registry-supply-chain-rfc.md) — signing, immutable pinning, checksums (incl. fetch-step sha256), and trust tiers, complementing the shipped inspect/permissions work. This issue stays open to track the decision + implementation.

  3. scttfrdmn commented on Jul 19, 2026

    @scttfrdmn
    ContributorAuthor

    Reopened: PR #9 landed the design RFC (docs/registry-supply-chain-rfc.md), not the implementation. This issue stays open to track the signing/pinning/checksum decisions and their rollout.

  4. scttfrdmn commented on Jul 19, 2026

    @scttfrdmn
    ContributorAuthor

    Increment 1 landed in spore-host/spawn PR #398: the plugin resolver now records provenance — the exact plugin.yaml sha256 plus a best-effort immutable commit SHA — surfaced in spawn plugin inspect (a Resolved: line) and stored in the local install record. Still open for later increments: signed official releases, a checksum manifest, fetch-step sha256:, and on-instance/EC2-tag recording.

  5. added 5 commits that reference this issue on Jul 20, 2026
  6. scttfrdmn commented on Jul 21, 2026

    @scttfrdmn
    ContributorAuthor

    Registry supply-chain hardening — complete ✅

    All five RFC increments are shipped, and both release follow-ups are done.

    Increments (all merged + released)

    1. fetch-step sha256: — spored verifies a transitive download against a declared checksum, removing the file on mismatch. (spawn#418)
    2. Checksum manifest — official [email protected] resolves to tag name-vX.Y.Z, fetches plugin.yaml at the tag, and verifies its sha256 against a manifest.json GitHub Release asset; missing/mismatch is a hard fail. Also fixed a latent bug where official installs 404'd (…/<name>/ vs …/plugins/<name>/). (spawn#419, plugins#11)
    3. Signed official releases (cosign/sigstore keyless) — the release workflow signs the manifest keyless (Fulcio + Rekor); spawn verifies by default, pinning the cert identity to this repo's release workflow, with a warn-window for unsigned releases and --insecure for local dev. (spawn#420/#421, plugins#13/fix(#8): sign with cosign --new-bundle-format #14)
    4. On-instance provenance — a successful install records provenance in an spore:plugin:<name> EC2 tag and spored's on-instance state; spawn plugin status shows a Source: line. (spawn#422)
    5. Publish-time permission/step consistency — spawn plugin validate --strict enforces that a plugin's declared permissions: block matches its steps (e.g. instance.root=false ⇒ no root remote step); all 4 plugins now declare accurate permissions and the registry lint runs --strict. (spawn#423, plugins#15)

    Verification

    Each increment with a runtime surface was validated end-to-end on real AWS (gated, TTL'd, leak-checked). Increment 3's full keyless chain was proven by re-cutting a real workflow-signed release and verifying signature-verified ✓ against the production sigstore trust root.

    Releases

    • spawn v0.86.0 (increments 1–3) and v0.87.0 (increments 4–5 + fixes).
    • rstudio-server v1.1.0 re-cut, signed by the workflow — spawn plugin inspect [email protected] → signature-verified ✓.

    Decisions (resolved in the RFC)

    cosign keyless · GitHub-release-asset manifests · verify-by-default + deprecation window · fetch-sha256 optional-but-required-for-official · EC2-tag + spored-state provenance · in-scope publish-time permission check.

    Closing. The separate registry-expansion track (more plugins) is unaffected and remains open elsewhere. Remaining official plugins (tailscale/spore-sync/globus) can be release-signed on demand with the same <name>-vX.Y.Z tag flow.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions