kube-ez icon indicating copy to clipboard operation
kube-ez copied to clipboard

Check for CVEs

Open kitarp29 opened this issue 1 year ago • 10 comments

Right now the CI is set up such that every successful build of Docker Image will be pushed to ghcr. But this is very risky, as I am not scanning for CVEs. Neither I have Image scanning open on my Docker Hub as I am broke. So we need to find some CLI-based Docker Image Scanning Jobs in the CI. Refer to This: Here image

kitarp29 avatar Jul 11 '23 18:07 kitarp29

Look into this https://github.com/marketplace/actions/docker-scout

kitarp29 avatar Jul 13 '23 06:07 kitarp29

Or you can use this action directly: https://github.com/snyk/actions

kitarp29 avatar Aug 01 '23 19:08 kitarp29

So I have enabled Docker Scout on my repo. It seems to be free in the early access version. ( Let's see till when it is free xD) Anyway, this is the changes I saw after fixing it:

All I had to do is to upgrade the base image. This means I just had to build an image so that it gets the latest of the base image. It raises a good itch in my head, I should have a CRON job for this. It runs once a month or so...

I know my CI will build and test, do functionality won't break! Only demerit I see is the documentation will be outdated with the tag each time. And I really don't want to make any commit with a CI runner! image

kitarp29 avatar Aug 11 '23 20:08 kitarp29

Anyway, this only fixes the CVEs on the image layer. Let's plan and build something for the code level. image (PS: That's what she said)

kitarp29 avatar Aug 11 '23 20:08 kitarp29

Ok, so I set up Snyk to scan my codebase. Now this got really interesting! Most of the CVEs are dependency-related or Kubernetes-YAML related. It is interesting because it did not say any part of the code has a CVE 🤯

Either one of the two things is happening here:

  • Snyk on the free level is bullcrap and not working as expected. I don't even see suggestions to fix my CVE on the dashboard.
  • I am the proof of singularity and I write code with no CVE 😂

Anyway my search for a Code scanning tool for my CI is not done yet then! I mean, the repo has CodeQL setup but you know it's not the same feeling. I learned some new things today for sure.

kitarp29 avatar Aug 11 '23 23:08 kitarp29

Integrate this: https://collabnix.com/how-to-integrate-docker-scout-with-github-actions/

kitarp29 avatar Aug 28 '23 15:08 kitarp29

Stale issue message

github-actions[bot] avatar Oct 28 '23 11:10 github-actions[bot]

Stale issue message

github-actions[bot] avatar Jan 06 '24 11:01 github-actions[bot]

Stale issue message

github-actions[bot] avatar Mar 16 '24 11:03 github-actions[bot]

Stale issue message

github-actions[bot] avatar Jun 08 '24 11:06 github-actions[bot]