Open davinkevin opened 5 years ago
Distroless is built on debian, right? Perhaps map them.
Hi guyz, I agree, it doesn't make sense exiting with an error, and breaking the CI/CD chain(s) for something that has not actually been scanned by clair. I'm trying to workaround this by excluding some images from scan with the whitelist file, but without success [yet?]. Would be great to consider either changing the core code, either create a proper option to manually exclude the [distroless] images we don't want to scan. Anyway, thanks again for the nice work on that tool ! +
up
Thanks a lot @aubm
Hi,
Currently, when I try to scan images relying on Distroless (java in my case, but this happen in every distroless base image), the clair-scanner respond with the following element:
The problem is the program ends up on error (exit code 1) due to this message and potentially breaks our CI pipeline.
This is caused by this line : https://github.com/arminc/clair-scanner/blob/871c1def37ac458cd812633fcf112ef4ade89393/clair.go#L84
I think the program shouldn't end on error in such case, because we don't have any distribution nor flaws in our container at the clair level.
Do you have a solution about this problem ? From my point of view, we could have a flag to allow this error to be
Fatal
or not.Thanks
/cc @neonox31