redhat-cop/rego-policies

unknown registry fires if image is empty

garethahealy opened this issue · 4 comments

It also needs to handle images from the local registry, i.e.:

In this example, it fires:

container 'etherpad' is from (etherpad/etherpad:latest), which is an unknown registry.

Suggest we split on / to check there is a registry specified, if not, skip.

Also, another reason for checking for /

container 'sonarqube' is from (sonarqube:8.2-community), which is an unknown registry.

hmm I can check it like here but need to think how to differentiate between something likedocker.io/ngnix:latest and etherpad/etherpad:latest ..and I think etherpad/etherpad:latest or sonarqube:8.2-community points to docker.io anyway 😅