You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Activity
feat: optional spored signature verification (#26) (#35)
release: 0.5.0 (#39)