Closed JtMotoX closed 5 months ago
Found a workaround by pushing the image before running the scanner, then passing --skip-push
to the scanner so it is only retrieving the results.
podman tag myimage:1.0 container-upload.us-1.crowdstrike.com/myimage:1.0
podman login container-upload.us-1.crowdstrike.com --username "${FALCON_CLIENT_ID}" --password-stdin <<< "${FALCON_CLIENT_SECRET}"
podman push container-upload.us-1.crowdstrike.com/myimage:1.0
podman run --rm -e FALCON_CLIENT_ID -e FALCON_CLIENT_SECRET quay.io/crowdstrike/container-image-scan:latest --repo myimage --tag 1.0 --log-level DEBUG --skip-push
I understand your difficulty in making this work since the podman container won't have access to the host podman image store. Would it be possible to do
podman save alpine:latest > alpine_latest.tar
then mount the tar file with-v /path/to/alpine_latest.tar:/image.tar
to my inner podmain container and have 'cs_imagescan.py' scan this saved image file?We have been running the following Docker command within our CI/CD pipelines:
docker run --rm -e FALCON_CLIENT_ID -e FALCON_CLIENT_SECRET -v /var/run/docker.sock:/var/run/docker.sock quay.io/crowdstrike/container-image-scan:latest --repo alpine --tag latest --log-level DEBUG
We are now in the process of switching from Docker to Podman for security purposes and have found that we are not able to run the scans using podman.
Running the following command fails:
podman run --rm -e FALCON_CLIENT_ID -e FALCON_CLIENT_SECRET quay.io/crowdstrike/container-image-scan:latest --repo alpine --tag latest --log-level DEBUG
With this error: