Error when scanning a Kubernetes workload or ServiceAccount with an empty item in imagePullSecrets
array
#7011
Closed
2 tasks done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
target/kubernetes
Issues relating to kubernetes cluster scanning
Milestone
Discussed in #6928
Originally posted by matheusfm June 13, 2024
Description
Trivy fails when scanning a Kubernetes workload with an empty item in
imagePullSecrets
array:Desired Behavior
I expect this object to be scanned without errors, ignoring the empty
imagePullSecrets
item.Actual Behavior
Trivy fails with the following output:
Reproduction Steps
imagePullSecrets
arrayTarget
Kubernetes
Scanner
Vulnerability
Output Format
Table
Mode
Standalone
Debug Output
2024-06-13T17:04:22-03:00 DEBUG Parsed severities severities=[UNKNOWN LOW MEDIUM HIGH CRITICAL] 2024-06-13T17:04:22-03:00 DEBUG Ignore statuses statuses=[] 2024-06-13T17:04:23-03:00 FATAL Fatal error get k8s artifacts with node info error: failed getting auth for gvr: /v1, Resource=pods - getting secret by name: default/: resource name may not be empty
Operating System
linux
Version
Checklist
trivy image --reset
The text was updated successfully, but these errors were encountered: