feat(tia): devices from a TIA hardware export (AML), no connector needed #1100
Open
sharang
wants to merge 2 commits from
feat/tia-aml into main
pull from: feat/tia-aml
merge into: platform:main
platform:main
platform:fix/branding-past-entitlement
platform:fix/devices-exported-only
platform:feat/tia-export-bundle
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#1100
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 #1097 (part of epic #1095). Do not merge yet: the AML format follows AutomationML's "Automation Project Configuration" recommendation, not yet a real TIA export. Merge after Sharang's demo-project export has been checked against it.
What it does
.aml) as a PLC project. A file named*.amlis read asPlcFormat::TiaAmlwhatever format was picked, so the dashboard needs no new option.pipeline/plc/aml.rs):InternalElementwith aTypeIdentifierofOrderNumber:…orGSD:…, itsFirmwareVersionwinning over the identifier's version, labelledstation / name;BuiltInis not filtered blind; decide from the real export.not_aml,no_devices,too_large);DevicesUnmatched).tia_refused:marker). Before, any 422 was worded as a supplier-SBOM refusal.Fixes found while rendering 56 devices locally
target.devices. This is live on stage since #1096, not on prod.DeviceChecknow carriesexported_in.6AV2124-0GC01-0AX0), so all HMIs were dropped as "wildcards". Now only a lower-casex(-0Axx) marks a catalog wildcard.Checked
exported_in.tests/tia_scan.rs: a real scan of a target with a TIA export and an AML. Both exports' devices land in the SBOM assiemens-device, and the run notes the unmatched GSD device, the unanalysed block and the protected block. This also covers #1096's scan path, which had no test.Open (for #1098/#1099, mockup): at 50+ modules the rail is long. Grouping by station belongs to the states and fleet mockups.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
A customer uploads TIA Portal's own hardware export ("CAx-Daten exportieren", .aml) as a PLC project; a file named *.aml is read as one whatever format was picked (#1097). - The CAEX file is read after AutomationML's "Automation Project Configuration" recommendation: device items with a TypeIdentifier (OrderNumber:… or GSD:…) and FirmwareVersion, labelled with their station. Not yet checked against a real TIA export. - Refused on upload with a code (not_aml, no_devices, too_large); the dashboard words TIA refusals on their own, no longer as SBOM ones. - A new export replaces only an earlier one of the same file name, so stations exported one by one stay side by side. - The scan notes devices it cannot match. Fixes on the way: - an upper-case X is part of real order numbers (6AV2124-0GC01-0AX0); only a lower-case x marks a catalog wildcard (HMIs were dropped); - the Steuerungen page saved its whole list, exported devices included, into the hand-entered ones on any edit; the device list now says which export a device comes from, and only entered devices are saved or edited. Tests: AML parsing, upload refusal/replacement/devices, and a scan-level test of a TIA export plus an AML (SBOM entries and run notes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT99cf0e493adto5c695fcf8fView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.