Skip to content

Publish the pinned EFA installer to the spawn-binaries mirror at release (needs spawn/efa/* on the release role) #1507

Closed as not planned

Description

@scttfrdmn

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 verify already runs at release. It verifies the pinned tarball's .sig against scripts/efapin/aws-efa-installer.key (fingerprint 4E9091BCBB97A96B26B15E59A05480B1DD2D3CCC) and requires the pinned sha256. Extend it, or add publish, so the verified bytes are uploaded to each SPAWN_BINARY_BUCKETS bucket under spawn/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 verify does.
  • 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 noPublicIPInternetNeeds for regions in sporedinstall.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 cp from the us-east-1 copy would avoid uploading 11 times.

Activity

  1. added
    enhancement
    area:mpi
    area:networking
    on Nov 2, 2026
  2. modified the milestones: v0.156.0, v0.157.0 on Nov 2, 2026
  3. scttfrdmn commented on Nov 3, 2026

    @scttfrdmn
    ContributorAuthor

    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.

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:mpiarea:networkingenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions