Skip to content

spored binary signature verification (optional) #26

Closed

Description

@scttfrdmn

spawn-ts's bootstrap verifies only the SHA256 checksum of the spored binary (guards corruption). The checksum sits in the same S3 bucket as the binary, so it can't prove authenticity. The Go bootstrap optionally verifies a detached publisher signature against a compiled-in signing key.

Go source

  • pkg/launcher/bootstrap.go:275-305 — downloads <binary>.sig, base64-decodes to DER, openssl dgst -sha256 -verify against /etc/spawn/spored-signing-key.pem, fail-closed. Gated by SPORED_SIG_VERIFY=1.

Browser feasibility

Browser-native — it's bootstrap shell + an embedded public key; src/aws/userdata.ts already generates the bootstrap.

Acceptance

  • Opt-in verifySignature?: boolean (+ the embedded spore.host public key) on BootstrapOptions; when set, the bootstrap writes the pubkey, downloads the .sig, and verifies before the atomic install (fail-closed).
  • Default stays checksum-only (documented), matching the Go default when no key is compiled in.
  • Unit test asserts the verify block appears only when enabled.
  • Docs: how to enable + the trust model (checksum = corruption only; signature = authenticity).

Size: small-medium.

Activity

  1. added
    area: aws
    cost-safety
    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: awscost-safety

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions