-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control 0075 - Image pull policy on latest tag triggers randomly #351
Comments
Thanks for the bug report @gnd; I've transferred it to the repo for the controls library. |
Hello, any news on this ? |
Hi @gnd, thanks for the bug report, and sorry for the late reply. |
Hello @alegrey91 thank you for the quick fix ! from what version of Kubescape can we expect this to be resolved ? We use latest master only to test some things, but run |
Hi, I think I've been a bit hasty with this fix. I apologize for that. |
Hi @gnd Thanks for reporting this issue. |
Hi @YiscahLevySilas1 , thanks for looking into this. Currently we can only disable the control for all namespaces. I think having it check for I can only guess what the redis example is, since i dont see it here. |
The best way to solve this issue is to allow the user to configure its own exceptions based on the images. Are we enabled to do this through the regolibrary framework? |
(Bug triage: not sure who that question was to Alessio. Was it to Yiscah?) |
Shouldn't it be possible to create a simple mapping as passed in the This I believe would be a much cleaner method keeping in lieu with how some other cases have also been implemented. |
Description
The C-0075 control treats all tags without numbers as latest. This is specified in the description of the control: https://hub.armosec.io/docs/c-0075:
Sometimes it happens that the hash function assigning tags at build (eg. $CI_COMMIT_SHORT_SHA) returns a hash without any numbers. This control then triggers a false positive. We would prefer if this check would only scan for
lates
tag and not do any magical assumptions about the nature of tag with or without numbers.Environment
OS:
Ubuntu 22.04 LTS
Version:
built latest master
Steps To Reproduce
befacaad
which is an actual hash.Expected behavior
Kubescape should not return this as a failed control.
Actual Behavior
Kubescape does return a failed control C-0075 for image tags which don't contain numbers. This can happen randomly. We can disable this control, but then we would loose the possibility to check for actual
latest
tags. It would be best if the "only letters" rule would be deactivated as it will trigger random false positives/Additional context
The text was updated successfully, but these errors were encountered: