Files
pruefwerk/compliance-core/src/models/mod.rs
T
Sharang ParnerkarandClaude Opus 5.5 e133d3f97d
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) Canceled after 2m9s
feat(licenses): licence policy, legal review, third-party notices (licence review v2)
- Licence policy per workspace: per licence category what a shipped and a
  build-only component needs (allow / review / forbid), rules for single
  licences, and how early a bought licence's end is announced. The default
  forbids nothing and asks for a review of copyleft, bought and unknown
  licences in shipped components.
- Licence check (GET /api/v1/licenses/check) and a verdict on every SBOM row;
  scans turn forbidden and ended licences into findings and list what waits
  for a review in one finding per target.
- Legal review: LEGAL (also IT_ADMIN and support) approves or rejects a
  component's licence (POST/DELETE /api/v1/licenses/review); an approval
  resolves a review, never a ban. Saving the licence again drops the review.
  The role gate lets LEGAL write on the policy and review routes only.
- Third-party notices (GET /api/v1/sbom/notices, text or markdown), in the
  evidence pack with license-check.json.
- MCP: license_check and get_third_party_notices; get_sbom and
  list_sbom_packages now carry the confirmed licences.
- Dashboard: licence check card with approve/reject (single and bulk), the
  policy dialog, the notices download and policy/review badges in the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 15:56:20 +02:00

92 lines
3.4 KiB
Rust

pub mod auth;
pub mod chat;
pub mod credentials;
pub mod cve;
pub mod dast;
pub mod embedding;
pub mod finding;
pub mod git_source;
pub mod graph;
pub mod issue;
pub mod license;
pub mod license_policy;
pub mod mcp;
pub mod mcp_token;
pub mod notification;
pub mod onboarding;
pub mod oscal;
pub mod oscal_assessment;
pub mod pentest;
pub mod project;
pub mod repository;
pub mod sbom;
pub mod scan;
pub(crate) mod serde_helpers;
pub mod vex;
pub mod webhook_delivery;
pub mod werkbank;
pub mod yocto;
pub use auth::{AuthInfo, SupportTenant};
pub use chat::{ChatMessage, ChatRequest, ChatResponse, SourceReference};
pub use credentials::Credentials;
pub use cve::{
advisory_source, is_cve, primary_id, AdvisoryRef, CveAlert, CveSource, EpssScore, Exploitation,
KevEntry,
};
pub use dast::{
DastAuthConfig, DastEvidence, DastFinding, DastScanPhase, DastScanRun, DastScanStatus,
DastTarget, DastTargetType, DastVulnType,
};
pub use embedding::{CodeEmbedding, EmbeddingBuildRun, EmbeddingBuildStatus};
pub use finding::{
Finding, FindingStatus, Occurrence, ScanChangeKind, ScanStatusChange, Severity, StatusChange,
};
pub use git_source::{GitSource, GitSourceView, SourceRepo, GIT_SOURCE_ID};
pub use graph::{
CodeEdge, CodeEdgeKind, CodeNode, CodeNodeKind, GraphBuildRun, GraphBuildStatus, ImpactAnalysis,
};
pub use issue::{IssueStatus, TrackerIssue, TrackerType};
pub use license::{LicenseCategory, LicenseConclusion, LicenseUsage};
pub use license_policy::{
LegalReview, LicensePolicy, LicenseVerdict, PolicyAction, ReviewDecision,
};
pub use mcp::{McpServerConfig, McpServerStatus, McpTransport};
pub use mcp_token::{McpToken, McpTokenView};
pub use notification::{CveNotification, NotificationSeverity, NotificationStatus};
pub use onboarding::{
default_compliance_profile, Artifact, ArtifactAuth, ArtifactKind, Classification,
ComplianceFramework, ComplianceProfile, DetectedFact, ExternalRef, ExternalSystem,
GitArtifactConfig, IssueTrackerConfig, LastScan, OnboardedTarget, PlcArtifactConfig, PlcFormat,
TargetScanConfig, TargetType, TargetTypeCandidate, WebArtifactConfig,
};
pub use oscal::OscalDocument;
pub use oscal_assessment::{assess, AssessmentResultsDoc, ControlLinker};
pub use pentest::{
AttackChainNode, AttackNodeStatus, AuthMode, CodeContextHint, Environment, IdentityProvider,
PentestAuthConfig, PentestConfig, PentestEvent, PentestMessage, PentestSession, PentestStats,
PentestStatus, PentestStrategy, SeverityDistribution, TestUserRecord, TesterInfo,
ToolCallRecord,
};
pub use project::{Project, ProjectKind};
pub use repository::ScanTrigger;
pub use sbom::{
ComponentHash, InImage, InImageBasis, SbomEntry, SbomQuality, SbomQualityCheck,
SbomQualityProfile, VulnRef, YOCTO_RECIPE_MANAGER, YOCTO_RECIPE_SOURCE,
};
pub use scan::{
RunErrorCode, RunNote, ScanPhase, ScanRun, ScanRunStatus, ScanStep, ScanType, SkipCode,
SkippedStage,
};
pub use vex::{VexAssessment, VexError, VexJustification, VexStatus};
pub use webhook_delivery::{DeliveryResult, WebhookDelivery, DELIVERIES_SHOWN};
pub use werkbank::{
CompleteRequest, CompleteResponse, DastCollect, Executor, HeartbeatAck, HeartbeatRequest,
InputRef, Job, JobCollect, JobRecord, JobResult, JobRuntime, JobStatus, JobType, LeaseRequest,
LeasedJob,
};
pub use yocto::{
display_codename, soon_window, LayerPin, LayerPins, PinSource, ReleaseBasis, Support,
YoctoRelease,
};