The kube-bench job completes but most checks show `WARN` or "unable to find config file"
IntermediateTroubleshootingDAST, runtime detection and compliance scans
Answer
Likely causes → The job does not mount the host paths where the kubelet config lives, or the distribution uses non-standard paths (k3s, RKE2, Bottlerocket), or version auto-detection picked the wrong benchmark.
Diagnose → kubectl logs job/kube-bench | head -30, and check the job's volumeMounts against where the kubelet config actually lives on the node (ps -ef | grep kubelet).
Fix → Use the distribution-specific job manifest, or pass the right config with --benchmark and --config-dir, and mount /var/lib/kubelet and /etc/kubernetes read-only. On Bottlerocket, use the OS's own CIS reporting.
Prevent → Fail the compliance job when the WARN count passes a threshold, so a broken scan is not mistaken for a clean one.
More on DAST, runtime detection and compliance scans
The ZAP baseline scan of your React SPA finishes in 40 seconds with only header warnings and no real findingsIntermediateThe authenticated ZAP full scan only ever tests the login page and `/logout`, and the report shows mostly `302` responsesIntermediate`zap-baseline.py` fails the pipeline with exit code 2 even though the report has no high-risk alertsBeginnerThe DAST job reports nothing, and its log shows mostly `403` and `429` responsesBeginnerAn active DAST scan against staging created 12,000 junk records and sent password-reset emails to real customer addresses copied from prodIntermediateNuclei runs in CI against staging and reports nothing for a known exposed `/.git/config`Beginner