Files
pruefwerk/compliance-core/src/lib.rs
T
Sharang ParnerkarandClaude Opus 5.5 e417d154d4
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 11m43s
fix(sbom): known licence names are exported as SPDX ids
BSI TR-03183-2 wants SPDX ids. Maven POMs, syft and older scans store
names ("The Apache Software License, Version 2.0") or only a licence URL;
the CycloneDX export wrote them as license.name, the SPDX export put the
raw name into licenseConcluded (invalid SPDX).

New compliance_core::spdx_license holds the SPDX list (moved from
sbom_docs), the licence-page URL table (moved from the agent's NuGet
lookup) and the name matcher (moved and extended from the agent's POM
lookup): case, punctuation, "The", "Version"/"v", "or later"/"+" and
GPL + Classpath exception; a family without a version or a dual licence
stays a name. Normalised at export, so rows stored before need no
migration; the POM and NuGet lookups use the same functions at ingest.

SPDX export: an expression of listed ids, else NOASSERTION with the
declared text in licenseComments.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-09 15:25:34 +02:00

41 lines
918 B
Rust

pub mod config;
pub mod control_check;
pub mod csaf_docs;
pub mod csaf_ingest;
pub mod db;
pub mod enisa_docs;
pub mod error;
pub mod exec_policy;
#[cfg(feature = "net")]
pub mod guarded_net;
pub mod models;
pub mod net_guard;
pub mod purl;
pub mod sbom_docs;
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::{
OrgRole, ProductAccess, StaffAccess, TenantContext, TenantStatus, SUPPORT_ROLES,
SUPPORT_TENANT_HEADER,
};