Skip to content

userdata bootstrap: spored download URL 404s + hardcoded amd64 #17

Closed

Description

@scttfrdmn

src/aws/userdata.ts (buildLinuxBootstrap) can never install spored on a real instance, so the self-termination guarantee doesn't hold on real AWS.

Bugs

  1. 404 download URL. It fetches https://github.com/spore-host/spawn/releases/{latest/download|download/<v>}/spored_linux_amd64. That asset does not exist — verified 404. Releases ship versioned tarballs; the Go bootstrap (pkg/launcher/bootstrap.go) installs from S3: https://spawn-binaries-<region>.s3.amazonaws.com/spored-linux-<arch> (verified anonymously downloadable, HTTP 200).
  2. Hardcoded amd64. Breaks every Graviton/arm64 instance. The Go bootstrap detects uname -m → amd64/arm64.
  3. No checksum/signature verification. The Go bootstrap downloads .sha256 (and a .sig) and verifies before installing; spawn-ts installs the raw download.

Fix

Port the Go install block: detect arch, fetch region from IMDS, download spored-linux-<arch> from the regional S3 bucket (with us-east-1 fallback), verify the SHA256, install via atomic rename. Track alongside spawn-ts#2 (real-launch validation) — this blocks it.

Activity

  1. added
    bug
    area: aws
    cost-safety
    on Jul 21, 2026
  2. scttfrdmn commented on Jul 21, 2026

    @scttfrdmn
    ContributorAuthor

    Fixed in #18 — bootstrap now installs spored from the regional S3 bucket with arch detection + checksum verify, mirroring the Go tool. Verified end-to-end with a real t4g.nano launch.

  3. added a commit that references this issue on Jul 21, 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

    area: awsbugcost-safety

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions