fanal icon indicating copy to clipboard operation
fanal copied to clipboard

feat: added skip-cache flag for images

Open DmitriyLewen opened this issue 3 years ago • 5 comments

added boolean flag skip-cache to skip cache when scanning images.

DmitriyLewen avatar Dec 20 '21 07:12 DmitriyLewen

What motivates you to add this feature?

knqyf263 avatar Dec 20 '21 16:12 knqyf263

What motivates you to add this feature?

Hi @knqyf263 I was going to ask you about it. I'm 100% agree it has no value for customers. But we would love to use it while debuging issues. It would exclude extra step for removing fanal cache. If I miss this step accidentally it can lead investigations to a wrong path.

AndreyLevchenko avatar Dec 21 '21 06:12 AndreyLevchenko

$ trivy image --clear-cache && trivy image [YOUR_COMMAND] doesn't work for you? I think we might be missing --skip-cache as well.

knqyf263 avatar Dec 21 '21 06:12 knqyf263

I suspect it won't work in some debug configs. It could be something other then cmd option but it would be nice to have cache bypass logic

AndreyLevchenko avatar Dec 21 '21 07:12 AndreyLevchenko

I suspect it won't work in some debug configs.

Could you give me some examples? I still don't get your point. --clear-cache has been working for me.

knqyf263 avatar Dec 21 '21 08:12 knqyf263