You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Misconfiguration and Image scans in kubernetes were splitted in #7690, and it brought a nasty bug.
Early the both scans worked in the same function, and misconfigs and vulns from images handled as the same item.
now there are two separated processes. Trivy gets misconfigurations and then appends image vulns.
if Trivy can't receive images (ex there are no permissions), there will be added an empty result and existed misconfig report will be skipped in the report.
Note: some kind of this bug was before #7690, but It didn't matter for most cases, because image vulns were adding before misconfigurations.
Reason
it affects only on summary report.
If a resource has no vulns or secret findings and has misconfigs, index item will be overridden by the latest result:
Description
Misconfiguration and Image scans in kubernetes were splitted in #7690, and it brought a nasty bug.
Early the both scans worked in the same function, and misconfigs and vulns from images handled as the same item.
now there are two separated processes. Trivy gets misconfigurations and then appends image vulns.
if Trivy can't receive images (ex there are no permissions), there will be added an empty result and existed misconfig report will be skipped in the report.
Note: some kind of this bug was before #7690, but It didn't matter for most cases, because image vulns were adding before misconfigurations.
Reason
it affects only on
summary
report.If a resource has no vulns or secret findings and has misconfigs,
index
item will be overridden by the latest result:trivy/pkg/k8s/report/report.go
Lines 90 to 96 in c0d79fa
Reproduction
I can reproduce this bug in my demo managment k8s cluster.
Scan with
--skip-images
:Scan with unreachable images (without
--skip-images
):The text was updated successfully, but these errors were encountered: