Trouble with Trivy Operator Accessing Azure Container Registry

0
8
Asked By CuriousCoder42 On

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!

3 Answers

Answered By PragmaticOperator11 On

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!

Answered By DevOpsDude88 On

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.

Answered By SkepticalTechie99 On

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!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.