Repository navigation
Open
Labels
enhancementNew feature or request
Milestone
Description
Problem
There are three independently-hardcoded lists of "regions where spored is available," and they drift:
- The actual
spawn-binaries-*S3 buckets (AWS reality) - spawn's release workflow
BUCKETS=(...)array (.github/workflows/release.yaml) - truffle's
pkg/spawn/regions.goSpawnSupportedRegionsmap (drives the ✓ spawn-supported indicator intruffleoutput)
They were already out of sync: the workflow + truffle listed 11 regions, but only 8 buckets existed (eu-west-2, ap-southeast-1, ap-northeast-1 were missing — created while fixing #13). truffle was telling users spawn worked in regions that had no spored binary.
Design (agreed)
Make the region list a published artifact derived from the actual deploy, not a source file anyone has to remember to edit.
- Authored by spawn's release workflow. After the spored S3-upload loop succeeds, write a
manifest.jsonlisting the regions actually uploaded to + the spored version + a timestamp. Because the same step that uploads also writes the manifest, it can't disagree with bucket reality. - Stored in S3 (infra), public-read like the binaries, at a canonical key — e.g.
s3://spawn-binaries-us-east-1/spored/manifest.json(and/or mirrored per region). Not committed to any repo. - Consumed by truffle at runtime. truffle fetches the manifest (cached) to drive the spawn-supported indicator, with the current embedded
regions.gomap as an offline fallback so truffle still works with no network/creds (just possibly stale).
Example manifest:
{
"spored_version": "0.36.4",
"updated": "2026-05-31T00:00:00Z",
"regions": ["us-east-1","us-east-2","us-west-1","us-west-2","ca-central-1",
"eu-west-1","eu-west-2","eu-central-1",
"ap-southeast-1","ap-southeast-2","ap-northeast-1"]
}Tasks
- spawn release workflow: emit
manifest.jsonfrom the regions the upload loop actually succeeded on; upload it to the canonical S3 key. - truffle: fetch + cache the manifest to drive
IsSpawnSupported; keepregions.goas the embedded fallback (and stop treating it as the source of truth). - Document the manifest location/schema.
Related
- Release: spored S3 upload broken — OIDC role won't allow spore-host/spawn (AssumeRoleWithWebIdentity denied) #13 (OIDC trust fix — the release-pipeline break that surfaced this)
- Harden spawn-binaries buckets: restrict spored download to spawn-launched instances (drop public read) #19 (locking down bucket read access — the manifest should remain readable by truffle under whatever access model Harden spawn-binaries buckets: restrict spored download to spawn-launched instances (drop public read) #19 lands on; if buckets go IAM-only, the manifest may need a separate public endpoint)
Ownership summary: spawn authors it, infra (S3) stores it, truffle consumes it.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity