feat(tia): a TIA connector's export is read, its devices matched #1096
Open
sharang
wants to merge 2 commits from
feat/tia-export-bundle into main
pull from: feat/tia-export-bundle
merge into: platform:main
platform:main
platform:chore/release-0.4.20
platform:fix/nightly-pump-controller
platform:feat/customer-branding
platform:fix/plc-empty-sbom-text
platform:feat/demo-plc-controller
platform:fix/tenant-erasure-confirm
platform:chore/release-0.4.19
platform:fix/target-limit-delete-text
platform:fix/demo-target-claim
platform:feat/entry-plan-target-limit
platform:feat/siemens-devices-ui
platform:feat/siemens-order-number-match
platform:chore/release-0.4.18
platform:feat/control-names-no-offsite-links
platform:fix/vex-not-from-scan
platform:chore/release-0.4.16
platform:docs/t83-dast-decision
No Reviewers
Labels
Clear labels
P0-demo
bug
cra:annex-i
critical
cve
enhancement
eol-tables
epic
high
infrastructure
onboarding
performance
pruefwerk
risk:accepted
security
severity:critical
severity:high
severity:low
severity:medium
v0.3.0
CERTifAI P0 demo build tickets (CS-*)
CRA Anhang I, wesentliche Cybersicherheitsanforderungen / CRA Annex I
Bekannte Schwachstelle in einer Abhängigkeit / known vulnerability in a dependency
Bundled end-of-life tables need an update
Tracking issue spanning multiple sub-issues
Multi-target onboarding wizard redesign
Befund aus Prüfwerk / Prüfwerk finding
Risiko akzeptiert, nicht behoben / accepted risk, not fixed
Schweregrad kritisch / critical
Schweregrad hoch / high
Schweregrad niedrig / low
Schweregrad mittel / medium
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: platform/pruefwerk#1096
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #1090 (part of epic #1095).
A TIA connector (#1094) uploads its export of a TIA Portal project as a zip with
manifest.jsonat the root. This PR is the Prüfwerk side; no TIA installation is needed for it.Contract (
compliance_core::models::tia_export, documented in docs/guide/plc.md):bundle_version1,tia_version(V20/V21), project, connector;{"value": …},{"unreadable": "<why>"}(Openness throws on some reads), or absent. This lets #1091 tell "off" from "unknown";protected.Unknown fields are ignored, so a newer connector doesn't break an older Prüfwerk.
Upload (
POST /api/v1/targets/{id}/artifacts/upload,kind=plc_project,plc_format=tia_export):code(not_zip,no_manifest,manifest_too_large,manifest_invalid,bundle_version) and is not kept.replace_supplier_sbomsis generalised toreplace_earlier.pruefwerk:uploads.write(registry #158, portal #208, both open).Devices:
plc.devices), not intarget.devices. The target editor replaces that list wholesale, so an edit would otherwise wipe them.OnboardedTarget::target_devices()joins the entered devices and the exported ones. It feeds the SBOM, the Siemens advisory matching and the Steuerungen page.Scan: what it doesn't analyse is shown as a skipped stage, never as clean, with three new skip codes and DE/EN wording:
PlcBlocksNotAnalysed, e.g. "2 (LAD, SCL)";ProtectedBlocks;DevicesUnmatched.Not in this PR: block code (#1093), CPU configuration rules (#1091), the connector (#1094), a dashboard upload option for the format (the connector uploads through the API).
Tests:
Merge timing: please merge this only after the v0.4.20 prod promote.
promote.shpins what stage runs, and otherwise this would ride into prod as part of "0.4.20".🤖 Generated with Claude Code
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.