Skip to main content

Crate vlz_report

Crate vlz_report 

Source

Structs§

CycloneDxReporter
Reporter that outputs CycloneDX 1.6 BOM JSON (SEC-019, FR-008).
DefaultReporter
Default reporter that prints a plain-text table to stdout (FR-007).
Finding
A single finding: a vulnerable package with its manifest path(s) and CVEs.
HtmlReporter
Reporter that outputs a minimal HTML table (FR-008 –report html:path).
IngestedVexStatement
One statement extracted from an OpenVEX or CycloneDX analysis document.
JsonReporter
Reporter that outputs findings as JSON to stdout (FR-007 –format json).
ManifestCoverageEntry
Per-manifest scan coverage entry (FR-037).
OpenVexReporter
Reporter that outputs standalone OpenVEX JSON (FR-044).
ReportData
Simple data structure handed to the reporter. Each CVE has a pre-resolved severity (FR-013). FR-015a: project_id is included when the scan was run with –project-id (or config/env).
SarifReporter
Reporter that outputs SARIF 2.1.0 JSON (FR-008 –report sarif:path).
SeverityConfig
Severity mapping configuration: default thresholds per CVSS version (FR-013).
SeverityThresholds
Thresholds for mapping a CVSS score to a severity label (FR-013). Defaults per version.
SpdxReporter
Reporter that outputs SPDX 3.0 JSON (SEC-019, FR-008).
VexConfig
Configuration snapshot for VEX generation and consume (FR-046, FR-049).
VexIngestParseResult
Result of parsing one VEX ingest file.
VexIngestPolicy
Policy for applying ingested statements (FR-049 / W4-4).
VexStatement
One VEX statement for a (package, CVE) pair.

Enums§

IngestStatus
Parsed ingest status after allowlist mapping.
ManifestScanStatus
Manifest scan outcome for multi-manifest resilience (FR-037).
ReportError
VexIngestError
Error opening or decoding a configured --from-vex path.
VexIngestKind
Document kind detected for an ingest path.
VexIngestSource
Source document for one ingested statement.
VexJustification
CISA minimum justification for not_affected.
VexStatus
VEX statement status (OpenVEX / CISA vocabulary).

Constants§

CISA_JUSTIFICATIONS
CISA / OpenVEX justifications accepted by vlz fp mark --justification.
DEFAULT_FP_JUSTIFICATION
Fallback CISA justification when an FP is marked without one.
DEFAULT_FP_VEX_STATUS
Default FP status when marking with VEX metadata.
DEFAULT_VEX_AUTHOR_NAME
Default VEX author when not configured.
DEGRADED_COVERAGE_NO_VULNERABILITIES_MESSAGE
Plain/HTML message when findings are empty but some manifests were direct-only (FR-010, FR-022a).
MANIFEST_STATUS_FAILED_PARSE
JSON/status string for failed_parse (NFR-024).
MANIFEST_STATUS_FAILED_RESOLUTION
JSON/status string for failed_resolution (NFR-024).
MANIFEST_STATUS_SCANNED_DIRECT_ONLY
JSON/status string for scanned_direct_only (NFR-024).
MANIFEST_STATUS_SCANNED_TRANSITIVE
JSON/status string for scanned_transitive (NFR-024).
NO_VULNERABILITIES_FOUND_MESSAGE
Plain/HTML message when scan completed with no CVE findings (FR-010).
OPENVEX_CONTEXT
OpenVEX @context for documents this crate emits.
OPENVEX_INGEST_CONTEXTS
Known OpenVEX @context URLs accepted for ingest.
REPORT_JSON_SCHEMA_ID
JSON Schema $id for --format json reports (DOC-005).
SCAN_INCOMPLETE_MESSAGE
Plain/HTML message when findings are empty but analysis did not complete (FR-010).
VEX_FP_STATUSES
VEX status values accepted by vlz fp mark --status.
VLZ_AFFECTED_RANGES_PROPERTY
SBOM / report property name for compact advisory ranges (FR-039, NFR-024).
VLZ_EPSS_PERCENTILE_PROPERTY
SARIF / CycloneDX property name for the FIRST EPSS percentile (FR-048, NFR-024).
VLZ_EPSS_PROPERTY
SARIF / CycloneDX property name for the FIRST EPSS score (FR-048, NFR-024).
VLZ_KEV_PROPERTY
SARIF / CycloneDX property name for the CISA KEV flag (FR-048, NFR-024).
VLZ_REPOSITORY_URL
Project repository URL; used in SARIF informationUri and elsewhere (DRY).

Traits§

Reporter

Functions§

cisa_to_cyclonedx_justification
Map CISA justification to CycloneDX 1.6 analysis.justification.
cyclonedx_analysis_for
Build CycloneDX analysis object for a statement (omits empty fields).
derive_vex_statements
Derive VEX statements from active findings, suppressed FP findings, and config.
format_affected_ranges_compact
Compact advisory-range summary for plain/HTML/SBOM (FR-039).
format_exploitability_markers
Inline exploitability markers for plain and HTML CVE cells (FR-048).
format_exploitability_markers_for
Marker text from raw ranking values (FR-048). Used where only deserialized report JSON is available (e.g. the LSP adapter).
format_upgrade_plan_compact
Compact representation of an upgrade plan for vlz fix dry-run text.
ingest_justification_as_vex
Map ingest justification string onto generate vocabulary when possible.
ingest_status_as_vex
Map ingest status to generate VexStatus for emit enrichment.
manifest_coverage_needs_section
True when plain/HTML manifest coverage section should be shown (FR-037).
merge_suppress_keys
Merge ignore-db keys with ingested suppress keys (ignore wins on conflict only in the sense that both suppress; ignore justification is preferred later when generating VEX).
nonempty_optional_id
Treat blank / whitespace-only strings as unset (FR-046).
parse_vex_ingest_bytes
Parse a VEX ingest document from bytes (OpenVEX or CycloneDX analysis).
parse_vex_ingest_file
Parse from a filesystem path.
parse_vex_ingest_value
Detect document kind and extract statements.
resolve_severity
Resolve severity from primary CVSS score and version using the given config. Returns Unknown if score or version is missing.
suppress_vuln_ids
Collect vuln ids that should suppress findings under policy.