Repository navigation
Description
Summary
Follow-up to #1505. The --efa user data now installs a pinned, sha256-checked EFA installer (aws-efa-installer-1.51.0.tar.gz, pinned in pkg/userdata/efa.go) and already tries the launch region's mirror first: https://spawn-binaries-<region>.s3.<region>.amazonaws.com/spawn/efa/aws-efa-installer-<version>.tar.gz, then efa-installer.amazonaws.com, checking the sha256 for each source. Nothing publishes that mirror copy yet, so today the mirror fetch fails fast (anonymous GET of a missing key) and the origin serves the tarball. A --no-public-ip launch with --efa therefore still needs NAT. cmd/launch_no_public_ip.go's noPublicIPInternetNeeds still lists efa-installer.amazonaws.com, and that is still correct.
This was left out of the #1505 PR on purpose. The release role's approved S3 grant covers spawn/awscli/* only (#1494 / PR #1503), and the brief was to stop and report the policy rather than assume a new prefix.
What the release step needs (not provisioned; owner decision)
On GitHubActions-spore-host-release (hand-managed; inline policy SpawnBinariesS3Upload), in addition to #1503's spawn/awscli/* grant:
{
"Sid": "EFAInstallerMirror",
"Effect": "Allow",
"Action": ["s3:PutObject", "s3:DeleteObject"],
"Resource": "arn:aws:s3:::spawn-binaries-*/spawn/efa/*"
},
{
"Sid": "EFAInstallerMirrorList",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::spawn-binaries-*",
"Condition": { "StringLike": { "s3:prefix": "spawn/efa/*" } }
}Each bucket's policy must also allow anonymous s3:GetObject under spawn/efa/, the way #1503's verify step proves for spawn/awscli/. I have not checked whether the current bucket policies already cover spawn/*.
Proposed step (after #1503 merges, on its pattern)
scripts/efa-pin.sh verifyalready runs at release. It verifies the pinned tarball's.sigagainstscripts/efapin/aws-efa-installer.key(fingerprint4E9091BCBB97A96B26B15E59A05480B1DD2D3CCC) and requires the pinned sha256. Extend it, or addpublish, so the verified bytes are uploaded to eachSPAWN_BINARY_BUCKETSbucket underspawn/efa/aws-efa-installer-<version>.tar.gz. Upload only when the object is absent or differs, because the pin moves rarely and the tarball is 591 MiB.- Read every copy back over anonymous HTTPS at the regional name and check the sha256, as fix(bootstrap): install the pinned AWS CLI from the regional spawn-binaries mirror first (#1494) #1503's
verifydoes. - Deleter: keep the pinned version and the newest one other version per bucket, delete older keys of the mirror's own name form, and touch nothing else.
- Once it is live, drop efa-installer.amazonaws.com from
noPublicIPInternetNeedsfor regions insporedinstall.PublishedRegions().
Cost
- Storage: 591 MiB × 11 regions = about 6.5 GiB per version. Keeping two versions is about 13 GiB, about $0.30 a month at S3 Standard.
- Transfer: about 6.5 GB uploaded from the runner, only in releases that move the pin. A server-side
aws s3 cpfrom the us-east-1 copy would avoid uploading 11 times.
Activity
scttfrdmn commentedon Nov 3, 2026
Closed in favour of #1515. The owner decided against mirroring third-party artifacts. Instead, a spore.host-managed egress proxy in the user's VPC will cover the EFA installer, the AWS CLI and Ubuntu apt, with no NAT gateway. The release-role
spawn/efa/*grant is no longer needed and was never applied.feat(efa,preflight): retire the EFA installer mirror; judge spawn-bui…
feat(bootstrap)!: retire the AWS CLI regional mirror; preflight count…