Files
pruefwerk/compliance-core/src/lib.rs
T
sharangandClaude Opus 5.5 f5697ff21d
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy MCP (push) Successful in 58s
CI / Deploy Docs (push) Successful in 1m29s
CI / Deploy Dashboard (push) Successful in 6m12s
CI / Deploy Agent (push) Successful in 8m13s
feat(scan): record which components each scan added, updated or removed (#974) (#975)
Before a stage replaces its part of a target's SBOM (the code SBOM, the
CODESYS libraries, the firmware components), the entries it replaces are
compared with the new ones and the changes are added to the scan run
(`component_changes`, at most 5000; `None` on runs from before). A
component is its package manager and name; one version before and one
after is an update, otherwise each new version an addition and each gone
one a removal.

The Verlauf API joins them with the scan's CVEs: a new CVE goes with the
component now at its version, a gone one with the component that was at
its version, and what no change explains is an advisory row. The scan's
drill-down shows the mockup's table (neu / aktualisiert / entfernt / neue
Advisory, version before → after, CVEs +n −m) above the CVE list; scans
from before say the components were not recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 10:18:01 +00:00

51 lines
1.1 KiB
Rust

pub mod build_info;
pub mod component_changes;
pub mod config;
pub mod control_check;
pub mod csaf_docs;
pub mod csaf_ingest;
pub mod cve_groups;
pub mod cve_history;
pub mod cve_matrix;
pub mod db;
pub mod encoding;
pub mod enisa_docs;
pub mod error;
pub mod exec_policy;
pub mod finding_breakdown;
#[cfg(feature = "net")]
pub mod guarded_net;
pub mod license_notices;
pub mod models;
pub mod net_guard;
pub mod purl;
pub mod sbom_docs;
pub mod sbom_ecosystems;
pub mod scan_changes;
pub mod scan_matrix;
pub mod spdx_license;
#[cfg(feature = "telemetry")]
pub mod telemetry;
pub mod tenant;
pub mod traits;
pub mod version;
pub mod vex_docs;
#[cfg(feature = "axum")]
pub mod auth;
#[cfg(feature = "secrets")]
pub mod secret_box;
#[cfg(feature = "axum")]
pub mod shutdown;
#[cfg(feature = "axum")]
pub mod tenant_ctx;
pub use config::{AgentConfig, AppEnv, DashboardConfig, Features, PlcRuntimeConfig};
pub use error::CoreError;
pub use exec_policy::ExecPolicy;
pub use net_guard::{NetGuard, NetGuardError};
pub use tenant::{
ApiKeyAccess, OrgRole, ProductAccess, StaffAccess, TenantContext, TenantStatus, SUPPORT_ROLES,
SUPPORT_TENANT_HEADER,
};