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
{{ message }}
Repository navigation
--efa runs aws-efa-installer-latest as root with no sha256 or signature check #1505
The MPI user data runs the EFA installer as root with no integrity check. pkg/userdata/mpi.go (the {{if .EFAEnabled}} block) does curl -O https://efa-installer.amazonaws.com/aws-efa-installer-latest.tar.gz, then tar -xf, then ./efa_installer.sh -y -g. No sha256 or signature is checked, and latest is a moving target, so every --efa launch runs whatever bytes that URL serves at boot. This differs from the AWS CLI (#1490: pinned version and sha256, and #1495: a signature-verified pin bump) and from spored and the bootstrap body (KMS signature).
Evidence
The block contains no checksum or gpg step. AWS documents both: a GPG key with fingerprint 4E90 91BC BB97 A96B 26B1 5E59 A054 80B1 DD2D 3CCC and a .sig beside each tarball, and sha256 checksums (efa-start, efa-verify).
The tarball is also left in /tmp (/tmp/aws-efa-installer*) after install.
Suggested fix
Same pattern as #1490/#1495: pin a versioned tarball (aws-efa-installer-<v>.tar.gz) with its sha256 in the user data, and move the pin with a workflow that verifies the .sig against the committed EFA key. This could reuse #1494's regional mirror, which would also let --no-public-ip launches use --efa without NAT (today cmd/launch_no_public_ip.go lists efa-installer.amazonaws.com as an internet need). Remove the tarball after the install.
Activity
fix(mpi): --efa installs a pinned, sha256-checked EFA installer, mirr…
test(mpi,ci): #1505 gates, efa-pin workflow wiring, CHANGELOG; regist…
wip(mpi): pin the EFA installer and check its sha256 (#1505)
fix(mpi): --efa installs a pinned, sha256-checked EFA installer, mirr…
test(mpi,ci): #1505 gates, efa-pin workflow wiring, CHANGELOG; regist…
wip(mpi): pin the EFA installer and check its sha256 (#1505)
fix(mpi): --efa installs a pinned, sha256-checked EFA installer, mirr…
test(mpi,ci): #1505 gates, efa-pin workflow wiring, CHANGELOG; regist…
test(mpi): gzip is a base tool for the EFA path's tar -xzf (#1505)
wip(mpi): pin the EFA installer and check its sha256 (#1505)
fix(mpi): --efa installs a pinned, sha256-checked EFA installer, mirr…
test(mpi,ci): #1505 gates, efa-pin workflow wiring, CHANGELOG; regist…
test(mpi): gzip is a base tool for the EFA path's tar -xzf (#1505)
fix(mpi): --efa installs a pinned, sha256-checked EFA installer, sign…