Require Images Use Checksums #889
-
Is possible that kyverno automatically identifies the sha of the given image and check if it is whitelisted instead of forcing users to specify the sha digest? This will be helpful especially when the images are generated from helm charts. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Not quite sure what you're asking. You're referring to this policy, I presume, which only requires that an image be specified using its digest and not tag. If the digest isn't a valid digest, no image will be pulled. If you want to only allow digests from a whitelist, you can certainly do that in a separate rule/policy. |
Beta Was this translation helpful? Give feedback.
@chipzoller I came across https://kyverno.io/policies/other/resolve-image-to-digest/resolve-image-to-digest/ policy which can get the digest from image tag. This solved my usecase.