Skip to content

Commit

Permalink
Use sha instead of tag to prevent hijacking
Browse files Browse the repository at this point in the history
  • Loading branch information
joejulian committed Feb 5, 2020
1 parent e537795 commit e43b602
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ install_certmanager() {

install_dummylb() {
echo 'Installing dummylb...'
docker_exec kubectl apply -f https://gitlab.com/joejulian/dummylb/-/raw/master/dummylb.yaml
DUMMYLB_SHA="cb4c17d70e63393f8de7cfa97d186aa06e781b3cd25bfff1f374b9d57159e80f"
DUMMYLB_REG="registry.gitlab.com/joejulian/dummylb"
curl -sL https://gitlab.com/joejulian/dummylb/-/raw/master/dummylb.yaml |
sed "s%image: $DUMMYLB_REG:latest%image: $DUMMYLB_REG@sha256:$DUMMYLB_SHA%" |
docker_exec kubectl apply -f -
echo
}

Expand Down

0 comments on commit e43b602

Please sign in to comment.