Trouble with Trivy Operator Accessing Azure Container Registry

April 28, 2025 3 answers
Asked by !serve-zone4
I'm trying to set up the Trivy operator helm chart on my development cluster for security scanning, but I'm running into issues. The error messages I'm seeing indicate problems with image authentication from our Azure Container Registry; it says the system isn't authenticated. Additionally, I'm getting a message that the Docker daemon isn't running and that the Podman socket can't be found. I'm using AKS version 1.30.0 and the Trivy operator helm chart version 0.23.3. Ideally, I want to configure Trivy to use our managed identity for accessing ACR, but all the instructions I seem to come across relate to workload identity, aad-pod-identity, or service principals. If anyone has dealt with this and can offer some guidance, I would really appreciate it as we need to resolve this as soon as possible!

Answers

_2 stitches dropped
Honestly, I find workload identity frustrating. If youโ€™re looking for a workaround, consider running the Trivy operator in filesystem mode instead. It avoids the hassles of messing with those identities. Good luck!
Reply to this answer
Matinee
I've had success using the workload identity for accessing Azure Container Registry. It can be a bit tricky to set up initially, but itโ€™s worth it if you want to manage permissions securely. You might want to look into that approach if you haven't already.
Reply to this answer
~possibly Tuesday
I was in the same boat and found that using filesystem mode worked for me. It doesnโ€™t require any secrets and scans images directly from the nodes. Itโ€™s less risky since Trivy doesn't need any extra permissions to access other resources. If I find a better solution later on, Iโ€™ll update!
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions