Created
December 1, 2022 14:13
-
-
Save saschagrunert/76558f6787b7c848fbd52c11119d68d8 to your computer and use it in GitHub Desktop.
Verifying Kubernetes binary artifacts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euox pipefail | |
TAG=v1.26.0-rc.1 | |
URL=https://dl.k8s.io/release/$TAG/bin/linux/amd64 | |
BIN=kubectl | |
for EXT in "" .sig .cert; do | |
FILE=$BIN$EXT | |
curl -sSfL --retry 3 --retry-delay 3 $URL/$FILE -o $FILE | |
done | |
COSIGN_EXPERIMENTAL=1 cosign verify-blob $BIN --signature $BIN.sig --certificate $BIN.cert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you also can do