Replies: 4 comments 1 reply
-
@afdesk could you take a look? |
Beta Was this translation helpful? Give feedback.
-
@mbrand thanks for the report! |
Beta Was this translation helpful? Give feedback.
-
@mbrand thanks again! Your suggestion about default k8s command is deffenitely make sence, I've created an issue to track it: #7786 there are two strange moments in your case:
Just to make sure, could you confirm that these moments don't affect on your scans? thanks |
Beta Was this translation helpful? Give feedback.
-
@mbrand thanks for your answer. |
Beta Was this translation helpful? Give feedback.
-
Description
When running a k8s trivy scan for misconfigs on "aks" nodes trivy throws an error.
I did some debugging and found out that the commands from trivy-checks are filtered by platform here in the code:
https://github.com/aquasecurity/trivy-kubernetes/blob/b070991579cacd7634052dee2e250350d6e493e8/pkg/jobs/collector.go#L569
Since trivy-checks contain no commands for "aks" the filtered list is of course empty and so the error is thrown.
Is this expected? Should these checks not be used with aks? Or should you maybe fall back to "k8s" commands if the kubernetes platform does not fit any given checks?
Desired Behavior
Scans should run :)
Actual Behavior
Reproduction Steps
1.Use aks 2.Call trivy with `trivy --debug k8s --report=summary cluster --scanners misconfig --include-kinds node` 3.Error :(
Target
Kubernetes
Scanner
Misconfiguration
Output Format
Table
Mode
Standalone
Debug Output
Operating System
Arch Linux
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions