-
Notifications
You must be signed in to change notification settings - Fork 209
Description
Description
I was just testing ImageValidatingPolicy, I am a new-ish Kyverno user, and my use case is related to AWS+ECR.
When I set this up, I realized that it was going to do much more than a ClusterPolicy could do - my earlier use cases were focused around making sure that only approved registries can go in the cluster. This tool will fetch the digest, and do many other things! Great... but it needs permissions. I searched the docs for anything related to ECR and IAM, and came up with one blog article that was nowhere near ImageValidatingProxy.
I don't know if comprehensive docs are in order, that would be great if there was someone from AWS who could contribute that, but for me certain basic things seemed undiscoverable without experimenting - for example, which controller needs the IRSA role assignment? I guessed admission-controller first, (nope), then background-controller, turns out it was the reports-controller.
And when I got it working, I noticed some noise in the logs about ecr credentials being rewritten constantly because there was no write access in the place where they're supposed to be cached. So, I attached a volume there, and now that error is gone. I assume it's properly caching creds now, but there was no documentation supporting any of this!
I would be happy to contribute some changes to the ImageValidatingPolicy docs if Kyverno is receptive to this, but my experience is still quite limited.
Slack discussion
No response