Replies: 3 comments 3 replies
-
Trivy does different types of analysis of Kubernetes clusters as covered here]. As part of the |
Beta Was this translation helpful? Give feedback.
-
How do I analyse RBAC? It's listed under components types but not available through the components flag. |
Beta Was this translation helpful? Give feedback.
-
This discussion is outdated now. |
Beta Was this translation helpful? Give feedback.
-
Description
I would like to analyse a GKE cluster where I was granted Kubernetes Engine Cluster Viewer and Kubernetes Engine Viewer on the project level.
When I try to run
trivy k8s --report=summary cluster
, I get the following error:Why do I need namespace creation permissions for a report?
Desired Behavior
Successful report generation being possible without this permission or alternatively a WARN log that tells me the results are limited due to missing permissions, but a "limited" report being provided as output nonetheless.
Actual Behavior
FATAL report generation failure
Reproduction Steps
1. Have Kubernetes Engine Cluster Viewer and Kubernetes Engine Viewer roles on the project level 2. Have a GKE cluster in that project 3. Run trivy k8s --report summary cluster
Target
Kubernetes
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
Ubuntu 22.04.3 LTS
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions