#3958·kubescape

feat(pdf): report scan coverage and skipped-control diagnostics in PDF reports

Author: harshitnub077Created Sep 28, 2026Updated Sep 28, 2026

Overview

As tracked in Phase 4 of #3884, scan coverage and skipped-control diagnostics need to be surfaced consistently across output formats. The PDF report format currently displays posture controls, resource compliance summary, and container image findings, but it does not yet expose scan coverage metrics or diagnostic reasons for skipped and unevaluated controls.

Problem

When a scan contains unevaluated or skipped controls (e.g. missing API group/version permissions, cluster-level timeouts, or workload irrelevance):

  • The PDF summary displays resource counts and compliance score, but omits whether coverage was complete or degraded.
  • Skipped controls do not appear with their diagnostic skip reasons.
  • Consumers reviewing exported PDF reports cannot distinguish between a clean, fully-evaluated posture scan and one where critical controls were never evaluated.

Solution

Complete Phase 4 of #3884 by adding scan coverage and skipped-control diagnostics to PDF reports:

  1. Coverage summary row: Surface evaluated vs. total control counts, aggregate coverage score, and a degraded status indicator alongside the posture summary when coverage gaps exist.
  2. Skipped controls section: Add a dedicated Skipped controls table detailing Severity, Control reference, Control name, and diagnostic skip reason.
  3. Noise-free clean scans: Follow the convention established across other formats by omitting the coverage summary and skipped-controls section when coverage is 100% and no controls were skipped.
  4. Documentation: Document scan coverage reporting guarantees across all supported output formats in docs/cli-reference.md.

Alternatives

  • Embedding skipped controls only as footnote asterisks: this does not scale to multi-control evaluation skips or provide structured columns for executive and auditing review.

Additional context

Completes Phase 4 of roadmap issue #3884 ("Improve scan coverage reporting across output formats"). Builds upon the shared collectSkippedControls helper and ScanCoverage data model.