After hardening, the config scan reports a single finding instead of nine. That looks good but is wrong: Trivy did not check the chart at all.
Symptom
trivy config --quiet --format json --output ~/kurs/05/konfig-ohne-werte.json . jq -r '.Results[] | [.Target, .MisconfSummary.Failures] | @tsv' ~/kurs/05/konfig-ohne-werte.json Containerfile 1
The chart is missing from the result entirely; only the Containerfile is listed.
Diagnosis
Without --quiet Trivy shows the warning. "Detected config files num=1" reveals that only one file was checked.
trivy config --format json --output ~/kurs/05/konfig-ohne-werte.json . 2026-12-03T12:19:37Z INFO [misconfig] Misconfiguration scanning is enabled 2026-12-03T12:19:37Z INFO [checks-client] Using existing checks from cache path="/home/ubuntu/.cache/trivy/policy/content" 2026-12-03T12:19:43Z WARN [helm scanner] Skipping chart file_path="chart" err="parse chart: execution error at (bewerbungslotse/templates/lotse.yaml:7:15): lotse.adminPasswort fehlt – es gibt kein Standardpasswort" 2026-12-03T12:19:43Z INFO Detected config files num=1
Causes
required valueThe chart does not render without a password
The hardening forbids a default password, so helm template fails without lotse.adminPasswort. Trivy renders the same way and fails at the same place.
helm template ~/lotse/chart Error: execution error at (bewerbungslotse/templates/lotse.yaml:7:15): lotse.adminPasswort fehlt – es gibt kein Standardpasswort
--quietThe warning is swallowed
--quiet suppresses warnings too. The exit code stays 0, the pipeline stays green.
Fix
trivy config --quiet --helm-set lotse.adminPasswort=nurfuerdenscan --format json --output ~/kurs/05/konfig-gehaertet.json .
Don't: Trust a scan that finds nothing without checking what it scanned.
Compliance engineering: CRA and AI Act on Kubernetes, day 5: secure by default – secure defaults in the chart and a config scan with Trivy.
Go to day 5 →
FAQ
How do I notice in the pipeline that Trivy skipped something?
From the Target field in the results. If an expected file such as the chart is missing, the scan is incomplete.
Is the value nurfuerdenscan a security problem?
No, it only serves rendering in the scan and is never installed.