-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Harbor is not fetching the latest digest of particular tag when using harbor proxy with kyverno for image verification. #21451
Comments
Can you please describe how you |
I've leverage this and using the above clusterPolicy I've shared in the parent message. Is this what you're looking for? |
the above digest in the log is the latest version but I'm still seeing the old digest image on pod like below
|
@stonezdj Did you get a chance to look into this? |
Can you please try this command to verify the tag is pullable in Harbor?
Because keyless image sign and verification is based on cosign, cosign can sign and verify the image pulled through Harbor proxy cache. |
How can we help you?
Hi,
We have a workflow where we are using harbor proxy proxied with dockerhub. harbor mutating webhook rewrite the image tag in such a way it pulls from harbor instead of docker.
we do image signing via github actions workflow using cosign.
We run kyverno clusterPolicy in order to verify if image has signature or not.
Let's say I have a particular tag with 4 different digests with latest digest in docker and their associated signatures. When harbor and kyverno is present, kyverno is always pulling the old digest instead of new digest even with pullPolicy set to Always and that's not the case when I removed harbor and instead fetch the image directly from dockerhub. Did anyone faced this issue?
Attached kyverno policy for reference
When I set
It's pulling the latest which is fine, But what I noticed is that kyverno is allowing the same tag with a digest without signature which shouldn't happen.
The text was updated successfully, but these errors were encountered: