Compare commits

..
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 1d0697cc6b fix(dashboard): the target-limit texts say delete, not archive
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m49s
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 23m44s
A customer has no archive action, only delete, which takes the target's
results with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-30 09:24:31 +01:00
14 changed files with 19 additions and 59 deletions

No files matched your search

Generated
+9 -9
View File
@@ -601,7 +601,7 @@ dependencies = [
[[package]]
name = "compliance-agent"
version = "0.4.19"
version = "0.4.18"
dependencies = [
"axum",
"base64 0.22.1",
@@ -657,7 +657,7 @@ dependencies = [
[[package]]
name = "compliance-core"
version = "0.4.19"
version = "0.4.18"
dependencies = [
"aes-gcm",
"axum",
@@ -689,7 +689,7 @@ dependencies = [
[[package]]
name = "compliance-dashboard"
version = "0.4.19"
version = "0.4.18"
dependencies = [
"async-trait",
"axum",
@@ -727,7 +727,7 @@ dependencies = [
[[package]]
name = "compliance-dast"
version = "0.4.19"
version = "0.4.18"
dependencies = [
"axum",
"base64 0.22.1",
@@ -749,7 +749,7 @@ dependencies = [
[[package]]
name = "compliance-graph"
version = "0.4.19"
version = "0.4.18"
dependencies = [
"bson",
"chrono",
@@ -774,7 +774,7 @@ dependencies = [
[[package]]
name = "compliance-mcp"
version = "0.4.19"
version = "0.4.18"
dependencies = [
"axum",
"bson",
@@ -797,7 +797,7 @@ dependencies = [
[[package]]
name = "compliance-smoke"
version = "0.4.19"
version = "0.4.18"
dependencies = [
"axum",
"compliance-core",
@@ -932,7 +932,7 @@ dependencies = [
[[package]]
name = "control-map"
version = "0.4.19"
version = "0.4.18"
dependencies = [
"serde",
"serde_json",
@@ -7127,7 +7127,7 @@ dependencies = [
[[package]]
name = "werkbank-exec"
version = "0.4.19"
version = "0.4.18"
dependencies = [
"compliance-core",
"compliance-dast",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-agent"
version = "0.4.19"
version = "0.4.18"
edition = "2021"
[lints]
-1
View File
@@ -167,7 +167,6 @@ async fn seed_one(
compliance_core::models::OnboardedTarget::new(full_name.to_string(), demo.target_type);
target.description = demo.description.clone();
target.demo = true;
target.devices = demo.devices.clone();
for a in demo.artifacts.iter().filter(|a| !a.is_upload()) {
match a.resolved_source_ref() {
Some(source_ref) => target.artifacts.push(targets::reference_artifact(
-31
View File
@@ -117,10 +117,6 @@ pub struct DemoTarget {
/// Applied by the nightly harness to the fixtures it onboards itself.
#[serde(default)]
pub enabled_scans: Vec<String>,
/// Siemens controllers the target runs on (SPS item 4a), stored with the
/// target so its SBOM lists them and Siemens' advisories match them.
#[serde(default)]
pub devices: Vec<compliance_core::models::PlcDevice>,
/// Golden baseline for the nightly regression.
#[serde(default)]
pub expect: Expect,
@@ -495,32 +491,6 @@ mod tests {
assert_eq!(on_disk.name_prefix, bundled.name_prefix);
}
#[test]
fn demo_devices_are_stored_as_the_api_would_store_them() {
// Arrange
let m = manifest();
let pump = m
.targets
.iter()
.find(|t| t.key == "plc-pump-station")
.expect("pump station in the manifest");
// Assert: a controller on a firmware Siemens names as affected
// (SSA-876787: below V2.9.8), so the demo SBOM is not empty.
assert!(!pump.devices.is_empty());
for t in &m.targets {
for d in &t.devices {
let normalised = compliance_core::models::PlcDevice::new(
&d.order_number,
&d.firmware,
d.label.as_deref(),
)
.expect("a valid controller");
assert_eq!(&normalised, d, "{}: store it normalised", t.key);
}
}
}
#[test]
fn manifest_is_well_formed() {
let m = manifest();
@@ -619,7 +589,6 @@ mod tests {
optional: true,
}],
enabled_scans: Vec::new(),
devices: Vec::new(),
expect: Expect::default(),
};
assert!(t.source_only());
-1
View File
@@ -285,7 +285,6 @@ async fn seed_nightly(
"target_type": t.target_type,
"description": t.description,
"artifacts": references,
"devices": t.devices,
}),
)
.await;
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-core"
version = "0.4.19"
version = "0.4.18"
edition = "2021"
[lints]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-dashboard"
version = "0.4.19"
version = "0.4.18"
edition = "2021"
default-run = "compliance-dashboard"
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-dast"
version = "0.4.19"
version = "0.4.18"
edition = "2021"
[lints]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-graph"
version = "0.4.19"
version = "0.4.18"
edition = "2021"
[lints]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-mcp"
version = "0.4.19"
version = "0.4.18"
edition = "2021"
[dependencies]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-smoke"
version = "0.4.19"
version = "0.4.18"
edition = "2021"
description = "Tiny Axum service exercising compliance-core M7.1 tenant gating. Run smoke.sh against it before merging anything that touches the auth/tenant path."
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "control-map"
version = "0.4.19"
version = "0.4.18"
edition = "2021"
[lints]
+1 -8
View File
@@ -6,7 +6,7 @@
"key": "plc-pump-station",
"name": "PLC pump station (ST + FBD, composite)",
"target_type": "plc_sps",
"description": "Composite PlcSps demo: Structured Text + FBD-as-PLCopen-XML control logic, plus an optional live Modbus endpoint (in-cluster plc-sim) and an optional device firmware image. Runs on a Siemens S7-1500 CPU with an old firmware, so its SBOM lists the controller and Siemens' advisories match it. Exercises PLC SAST, ICS probe, semantic control mapping, Siemens advisory matching.",
"description": "Composite PlcSps demo: Structured Text + FBD-as-PLCopen-XML control logic, plus an optional live Modbus endpoint (in-cluster plc-sim) and an optional device firmware image. Exercises PLC SAST, ICS probe, semantic control mapping.",
"artifacts": [
{
"kind": "plc_project",
@@ -30,13 +30,6 @@
"optional": true
}
],
"devices": [
{
"order_number": "6ES7511-1AK02-0AB0",
"firmware": "2.9.4",
"label": "Pump station CPU"
}
],
"expect": {
"min_findings": 16,
"sast_rule_ids": [
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "werkbank-exec"
version = "0.4.19"
version = "0.4.18"
edition = "2021"
description = "Shared dynamic-execution logic: soft-PLC provisioning + industrial-protocol probing, used by the compliance agent and the Werkbank runner."