Back in Cloud9, pull the latest changes, including the Snyk Fix, to the working environment.
Now build and push the container to Docker Hub.
docker build -t $DockerId/goof:latest . docker push $DockerId/goof:latest
After pushing the image to Docker Hub, push it to EKS by scaling the goof deployment with kubectl. The deployment’s ImagePullPolicy forces EKS to pull the latest image from Docker Hub.
kubectl scale deployment goof --replicas=0 kubectl scale deployment goof --replicas=1
Once the application is running, try the
st5 exploits again. They will fail spectacularly.