Open julianvmodesto opened 4 years ago
hi, @julianvmodesto looks like there are internal checks that expect ":" in your input, can you log the execution to check it? I do not have the code to reproduce the issue.
please see the following call stack: https://github.com/grafeas/kritis/blob/a50de654cd2b2f25cacc10f93e4ac2f213e94e3c/pkg/kritis/metadata/containeranalysis/containeranalysis.go#L171 https://github.com/grafeas/kritis/blob/a50de654cd2b2f25cacc10f93e4ac2f213e94e3c/vendor/github.com/google/go-containerregistry/pkg/name/ref.go#L41 https://github.com/grafeas/kritis/blob/a50de654cd2b2f25cacc10f93e4ac2f213e94e3c/vendor/github.com/google/go-containerregistry/pkg/name/tag.go#L79
Whoops, yeah I misread this error... it seems like I'm seeing the panic for a completely different reason related to a PGP policy.
if it fails the check that the input should have ":", the PGP related fingerprint may not be generated, which leads to the nil dereference. Can you log the run to see if the check fails,
Expected Behavior
I expect for a Pod with a specified image without any tag or digest specified to be validated, such as
gcr.io/my-project/nginx
(as opposed togcr.io/my-project/nginx:latest
).Actual Behavior
I receive the following error:
This issue is similar to: https://github.com/grafeas/kritis/issues/82
Steps to Reproduce the Problem
Apply an image without any tag or digest specified, such as
gcr.io/my-project/nginx
Additional info
Panic: