Day 9: Technical documentation and conformity
Goal: build the technical documentation under Annex VII CRA, write the risk assessment with evidence, seal test reports, put the user information under Annex II into the chart, draft the EU declaration of conformity and attach a signed “type plate” to the image · Duration: about 120 min · Prerequisite: Day 8 completed
State before this chapter
# on werk1
git -C ~/lotse describe --tagsExpected:
v1.0.2-1-g0c1e008
-1-g0c1e008 means: one commit after the tag
v1.0.2, namely revision 2 of the security advisory from Day
8. Your hash is different.
# on werk1
helm list -n lotseExpected:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
lotse lotse 11 2026-12-03 14:34:01.348028427 +0000 UTC deployed bewerbungslotse-1.0.2 1.0.2
Your revision number may differ. What matters is
bewerbungslotse-1.0.2.
# on werk1
kubectl -n lotse exec deploy/lotse -- ls -l /datenExpected (your numbers are different):
total 12
-rw-r--r-- 1 10001 10001 336 Dec 3 12:12 270969b6.json
drwxr-sr-x 3 10001 10001 4096 Dec 3 14:34 anlagen
-rw-r--r-- 1 10001 10001 320 Dec 3 12:13 b0ef4bd7.json
Remember one of the numbers. You need it in Drill 2.
Introduction
For eight days you have implemented obligations: parts list, vulnerabilities, VEX, secure defaults, signed updates, point of contact, notification. Now comes the question every market surveillance authority will ask: “Show me.”
Before placing on the market, the CRA requires technical documentation (Article 31, Annex VII), a conformity assessment (Article 32) and only then the EU declaration of conformity (Article 28) with the CE marking (Article 30). The order is not a formality: with the declaration you take responsibility for your product meeting the requirements. You can only sign what you can prove.
Today you build the filing cabinet. You establish what is already there, write what is missing and measure honestly as you go. The result will surprise you: at the end the documentation is complete, but the declaration remains a draft. Your own risk assessment shows you why.
Today you will learn:
- to map the eight points of Annex VII to files in the repository and to count the gaps,
- to write a risk assessment under Article 13(3) in which every line has evidence or the status “open”,
- to produce test reports for a version and seal them with checksums,
- to put the user information under Annex II into the Helm chart, so
that
helm show readmeand the installation output show it, - to draft an EU declaration of conformity under Annex V and to attach a signed type plate as an attestation to the image digest,
- to build a reproducible archive for the ten-year retention.
Background
The picture of the day: the type approval
Before a new vehicle model may go on the road, the factory needs a type approval. For it, the factory submits a file: description of the model, design drawings, the hazard analysis, the crash test reports and the owner’s manual. Only when the file shows that all regulations are met does every vehicle get its type plate: manufacturer, type, approval number, firmly riveted on.
Under the CRA, no authority approves a default-category product like the Bewerbungslotse in advance. The factory checks for itself (internal control, module A) and declares for itself. The file must nevertheless be complete, because the supervisory authority can request it at any time, for up to ten years.
- Type-approval file = technical documentation under Annex VII.
- Hazard analysis = assessment of the cybersecurity risks under Article 13(3).
- Crash test reports = test reports (Annex VII, point 6): scans, signature verification, validation.
- Owner’s manual = information for users under Annex II.
- Factory’s certificate of conformity = EU declaration of conformity under Annex V.
- Type plate on the vehicle = signed attestation on the image digest: it is attached to the product itself and fits only exactly this vehicle.
- File archive = retention under Article 13(13).
The terms
| Term | Meaning | In the picture |
|---|---|---|
| technical documentation | all data on how the manufacturer meets the requirements of Annex I (Article 31) | type-approval file |
| conformity assessment | check whether Annex I is met; here internally under module A (Article 32, Annex VIII, Part I) | the factory checks for itself |
| EU declaration of conformity | written declaration by the manufacturer following the model in Annex V (Article 28) | certificate of conformity |
| CE marking | mark that the product meets the EU rules; for software on the declaration or the website (Article 30(1)) | the “E” approval mark |
| risk assessment | analysis of the risks and decision per requirement from Annex I, Part I, point 2 (Article 13(3)) | hazard analysis |
| test report | result of a test that proves conformity (Annex VII, point 6) | crash test report |
| user information | nine mandatory items that accompany the product (Annex II) | owner’s manual |
| harmonised standard | European standard whose application gives a presumption of conformity | recognised test specification |
| attestation | signed statement about an artefact, bound to its digest | riveted type plate |
Remember: First the file, then the check, then the signature. A declaration of conformity without complete documentation is a type plate without type approval.
What the law requires
Article 13(12) CRA lays down the order: “Before placing a product with digital elements on the market, manufacturers shall draw up the technical documentation referred to in Article 31.” Then they carry out the conformity assessment under Article 32, and only once it has demonstrated compliance with Annex I, “manufacturers shall draw up the EU declaration of conformity in accordance with Article 28 and affix the CE marking in accordance with Article 30”.
Annex VII lists the minimum content of the technical documentation in eight points:
| Point | Content (shortened) |
|---|---|
| 1 | general description: (a) intended purpose, (b) software versions, (c) for hardware, illustrations, (d) user information under Annex II |
| 2 | design, development, production: (a) architecture, (b) vulnerability handling processes with parts list, CVD policy, contact address, secure distribution of updates, (c) production and monitoring processes |
| 3 | assessment of the cybersecurity risks, “including how the essential cybersecurity requirements set out in Part I of Annex I are applicable” |
| 4 | information for determining the support period |
| 5 | harmonised standards, common specifications or certifications applied; without them, “descriptions of the solutions adopted” for Annex I |
| 6 | “reports of the tests carried out to verify the conformity” |
| 7 | a copy of the EU declaration of conformity |
| 8 | the parts list, further to a reasoned request from the market surveillance authority |
For the risk assessment, Article 13(3) gets specific: it shall comprise “at least an analysis of cybersecurity risks based on the intended purpose and reasonably foreseeable use”, and it shall indicate “whether and, if so in what manner, the security requirements set out in Part I, point (2), of Annex I are applicable to the relevant product with digital elements and how those requirements are implemented”. If a requirement is not applicable, paragraph 4 requires “a clear justification to that effect”.
The EU declaration of conformity follows the model in Annex V: product, manufacturer, sole responsibility, object, declaration of conformity, standards, notified body where applicable, additional information, signature. For software, the CE marking under Article 30(1) is affixed “either to the EU declaration of conformity referred to in Article 28 or on the website accompanying the software product”.
The product shall be accompanied, “at minimum”, by the user information under Annex II: manufacturer and contact, point of contact for vulnerabilities, unique identification, purpose and security properties, known risks and foreseeable misuse, address of the declaration of conformity, type of support with end date, instructions ((a) to (f)) and, if made available, where the parts list is.
And the retention: under Article 13(13), manufacturers keep documentation and declaration at the disposal of the market surveillance authorities “for at least 10 years after the product with digital elements has been placed on the market or for the support period, whichever is longer”.
On timing: under Article 71(2), the main obligations of the CRA apply
from 11 December 2027. According to PRODUKT.md, the
Bewerbungslotse is to be placed on the market in December 2027. You
build the file now; you sign the declaration only before placing on the
market.
This course is not legal advice. Whether harmonised standards for your product have meanwhile been published in the Official Journal and how exactly your declaration must read is something you clarify with your legal department in real operation. The exercise shows how to build and substantiate the file technically.
Drill 1: Inventory – what is already in the filing cabinet?
Where you are: on werk1.
What you have afterwards: a folder
~/lotse/dokuwith a table of contents following Annex VII and the number of gaps.
Step 1 – look at what the repository already
contains. Before you write, you count what is there.
git ls-files shows only files that Git manages,
i.e. exactly what you can ship and prove.
# on werk1
git -C ~/lotse ls-filesExpected:
Containerfile
PRODUKT.md
SCHWACHSTELLEN.md
SECURITY.md
app.py
beispielwerk.pub
chart/Chart.yaml
chart/templates/lotse.yaml
chart/templates/netzwerkregeln.yaml
chart/templates/ollama.yaml
chart/values.yaml
csaf/bw-sa-2026-001.json
requirements.txt
sbom/bewerbungslotse-1.0.0.cdx.json
sbom/bewerbungslotse-1.0.0.spdx.json
sbom/bewerbungslotse-1.0.1.cdx.json
sbom/bewerbungslotse-1.0.1.spdx.json
sbom/bewerbungslotse-1.0.2.cdx.json
sbom/bewerbungslotse-1.0.2.spdx.json
sbom/ollama-0.40.19.cdx.json
scans/grype-1.0.0.json
scans/grype-1.0.1-rc1.json
scans/grype-1.0.1.json
scans/grype-image-1.0.0.json
scans/grype-image-vex-1.0.0.json
scans/grype-sbom-vex.json
scans/grype-vex-1.0.1.json
scans/grype-vex-1.0.2.json
scans/trivy-1.0.0.json
scans/trivy-image-1.0.0.json
security.txt
signing-config.json
vex/bewerbungslotse-1.0.0.openvex.json
vex/bewerbungslotse-1.0.1.openvex.json
vex/bewerbungslotse-1.0.2.openvex.json
What you see: a lot of material, but no table of
contents. An authority requesting “the technical documentation for
1.0.2” would have to work out for itself which of the 35 files belong to
it. The scans under scans/ also come from different days
and versions.
Step 2 – create a folder for the file.
# on werk1
mkdir ~/lotse/dokuNo output means: created.
Step 3 – write the table of contents. One line per
point of Annex VII, plus the location in the repository and the status.
Where there is nothing yet, you honestly write FEHLT
(missing).
# on werk1
nano ~/lotse/doku/README.md# Technische Dokumentation Bewerbungslotse
Inhalt nach Anhang VII CRA (VO (EU) 2024/2847), Konformitätsbewertung
nach Modul A (Anhang VIII Teil I). Gilt für Version 1.0.2.
| Nr. | Anhang VII verlangt | Ort | Stand |
|---|---|---|---|
| 1 a | Zweckbestimmung | PRODUKT.md | vorhanden |
| 1 b | Softwareversionen | PRODUKT.md, chart/Chart.yaml | vorhanden |
| 1 c | Abbildungen (nur Hardware) | entfällt, reine Software | entfällt |
| 1 d | Informationen für Nutzer (Anhang II) | chart/README.md | FEHLT |
| 2 a | Architektur | doku/aufbau.md | FEHLT |
| 2 b | Schwachstellenbehandlung | sbom/, vex/, csaf/, SECURITY.md, security.txt, SCHWACHSTELLEN.md | vorhanden |
| 2 c | Herstellung und Überwachung | doku/aufbau.md | FEHLT |
| 3 | Bewertung der Cybersicherheitsrisiken | doku/risikobewertung.md | FEHLT |
| 4 | Unterstützungszeitraum | PRODUKT.md | vorhanden |
| 5 | Normen und Spezifikationen | dieser Abschnitt, unten | vorhanden |
| 6 | Prüfberichte | doku/pruefberichte/1.0.2/ | FEHLT |
| 7 | EU-Konformitätserklärung | doku/eu-konformitaetserklaerung-1.0.2.md | FEHLT |
| 8 | Stückliste auf Verlangen | sbom/bewerbungslotse-1.0.2.cdx.json | vorhanden |
## Nr. 5: Normen und Spezifikationen
- Harmonisierte Normen: keine angewandt. Die Lösungen für Anhang I
Teil I und II stehen in doku/risikobewertung.md.
- Sonstige technische Spezifikationen: CycloneDX 1.7 und SPDX 2.3
(Stückliste), OpenVEX 0.2.0, CSAF 2.0, RFC 9116 (security.txt),
Sigstore-Signaturformat (Cosign), CVSS 3.1.| Line | Content | Why |
|---|---|---|
| 3–4 | legal basis and procedure | the file itself says what it is built on |
| 4 | “Gilt für Version 1.0.2” (applies to version 1.0.2) | a file belongs to exactly one version |
| 10 | point 1 c entfällt (not applicable) |
Annex VII applies “as applicable to the relevant product with digital elements”; illustrations are only required for hardware |
| 17 | point 5 vorhanden (present) |
whoever applies no harmonised standard describes their solutions and names the other specifications |
| 22–28 | section “Nr. 5” (point 5) | the formats you used on Days 2 to 7 |
Step 4 – count the gaps.
# on werk1
grep -c FEHLT ~/lotse/doku/README.md-c: don’t print the lines, count how many lines contain the word.
Expected:
6
Step 5 – look at the gaps.
# on werk1
grep FEHLT ~/lotse/doku/README.mdExpected:
| 1 d | Informationen für Nutzer (Anhang II) | chart/README.md | FEHLT |
| 2 a | Architektur | doku/aufbau.md | FEHLT |
| 2 c | Herstellung und Überwachung | doku/aufbau.md | FEHLT |
| 3 | Bewertung der Cybersicherheitsrisiken | doku/risikobewertung.md | FEHLT |
| 6 | Prüfberichte | doku/pruefberichte/1.0.2/ | FEHLT |
| 7 | EU-Konformitätserklärung | doku/eu-konformitaetserklaerung-1.0.2.md | FEHLT |
What you see: Five files are missing (2 a and 2 c
end up in the same one). That is your work plan for today. The counter
is also a deterministic check command: at the end of the day it must
show 0.
Remember: The technical documentation is first of all a table of contents. Whoever assigns every point of Annex VII to a location sees the gaps before the authority sees them.
Save your progress? Sign up for free
Drill 2: Design and hazard analysis
Where you are: on werk1.
What you have afterwards:
doku/aufbau.md(points 2 a and c) anddoku/risikobewertung.md(point 3), in which every requirement from Annex I, Part I, point 2 has a status, based on measurements.
Step 1 – look at the running parts. You don’t describe the architecture from memory, but from what is actually running.
# on werk1
kubectl -n lotse get deploy,svc,pvc,networkpolicydeploy,svc,pvc,networkpolicy: several resource types in one call, separated by commas.
Expected:
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/lotse 1/1 1 1 20h
deployment.apps/ollama 1/1 1 1 20h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/lotse ClusterIP 10.43.146.193 <none> 8080/TCP 20h
service/ollama ClusterIP 10.43.238.68 <none> 11434/TCP 20h
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE
persistentvolumeclaim/lotse-daten Bound pvc-656a09c3-9a67-4051-8136-79f978d1a0a4 1Gi RWO local-path <unset> 19h
persistentvolumeclaim/ollama-modelle Bound pvc-ea7a7a6c-dbe1-4620-a467-3adfe32c6965 10Gi RWO local-path <unset> 20h
NAME POD-SELECTOR AGE
networkpolicy.networking.k8s.io/alles-zu <none> 19h
networkpolicy.networking.k8s.io/lotse-port-8080 app=lotse 19h
networkpolicy.networking.k8s.io/ollama-nur-vom-lotsen app=ollama 19h
What you see: two services, two volumes, three
network rules. That is exactly what belongs in the architecture, plus
the path of a request. Note the CLUSTER-IP of the service
lotse (mine is 10.43.146.193).
Step 2 – describe design and production. Annex VII, point 2(a) requires “a description of the system architecture explaining how software components build on or feed into each other”. Point 2(c) asks about production, monitoring and their validation. Both fit into one file.
# on werk1
nano ~/lotse/doku/aufbau.md# Aufbau und Herstellung (Anhang VII Nr. 2 a und c)
## Architektur
Bewerber/Personal ──► Service lotse :8080 ──► Pod lotse (Flask, gunicorn)
│ Akten: PVC lotse-daten (/daten)
▼
Service ollama :11434 ──► Pod ollama
Modell: PVC ollama-modelle
| Teil | Aufgabe | Schnittstelle |
|---|---|---|
| lotse | nimmt Bewerbungen an, fragt das Modell, legt Akten ab | HTTP 8080 |
| ollama | führt das Sprachmodell qwen3:4b-instruct aus | HTTP 11434, nur vom Lotsen |
| lotse-daten | Akten (JSON) und Anlagen | Dateisystem im Pod |
| NetworkPolicies | alles zu, Ollama nur vom Lotsen, Lotse nur Port 8080 | – |
## Herstellung
1. Quelltext und Chart im Git-Repository, jede Version als Tag (v1.0.2).
2. Bau mit Podman aus dem Containerfile, mehrstufig, ohne pip im Laufzeit-Image.
3. Push in die Registry werk1:5000, ab dann nur noch per Digest verwendet.
4. Signatur mit Cosign (Schlüssel des Werks), Stückliste (CycloneDX) und
VEX (OpenVEX) als signierte Attestation am Digest.
5. Chart verweist auf Tag und Digest; Auslieferung per helm upgrade.
## Überwachung und Validierung
- Vor jeder Auslieferung: cosign verify und verify-attestation gegen den Digest.
- Je Version: Grype mit VEX, trivy config für Chart und Containerfile,
Ergebnisse unter doku/pruefberichte/<version>/.
- Neue Schwachstellen: Bewertung in SCHWACHSTELLEN.md, Entscheidungen als VEX.Every production step is one you carried out yourself on an earlier day: build and push on Day 5, signature and attestation on Day 6. The sketch is indented by four spaces so that Markdown shows it as preformatted text.
Step 3 – check a claim: who may read an application file? The risk assessment should not be a wish list. The first question for Annex I, Part I, point 2(d) (“protection from unauthorised access”): does reading an application file require a login? Insert your cluster IP and one of your file numbers.
# on werk1
curl -s http://10.43.146.193:8080/api/bewerbungen/270969b6Expected:
{"bewertung":{"begruendung":"Die Bewerbung zeigt klare, relevante Erfahrung in Linux-Administration und Kubernetes mit konkreten Tools wie k3s, RKE2, Ansible und Helm-Charts, was die Stelle sehr gut passt.","passung":5},"name":"Mara Klein","nummer":"270969b6","stelle":"Linux-Administratorin (m/w/d) mit Kubernetes-Erfahrung"}
What you see: name and rating, without a password. The file is protected only by the fact that you have to know its eight-character number and that the service is only reachable inside the cluster. The password from Day 5 only applies to the export. For point (d) this means: open.
Step 4 – check a second claim: does the service stay available? Point (h) requires the availability of essential functions. The Lotse runs with a single gunicorn worker. What happens to other requests while the model is computing? For this you need two terminals on werk1.
In the first terminal you submit an application:
# on werk1, terminal 1
time curl -s -X POST -H "Content-Type: application/json" --data @kurs/00/bewerbung-jonas.json http://10.43.146.193:8080/api/bewerbungenRight afterwards, while terminal 1 is still waiting, you only ask for the health status in the second terminal:
# on werk1, terminal 2
time curl -s http://10.43.146.193:8080/gesundtime: measures how long the command takes. We are interested in therealline./gesund: the simplest request the Lotse knows; it needs neither the model nor the disk.
Expected in terminal 2:
{"status":"ok","version":"1.0.2"}
real 0m46.748s
user 0m0.009s
sys 0m0.016s
Expected in terminal 1:
{"bewertung":{"begruendung":"Die Bewerbung zeigt keine relevante Erfahrung für die Stelle eines Linux-Administratorin mit Kubernetes-Erfahrung und passt daher nur sehr schlecht zur Stelle.","passung":1},"name":"Jonas Berg","nummer":"7aeb966e","stelle":"Linux-Administratorin (m/w/d) mit Kubernetes-Erfahrung"}
real 0m48.335s
user 0m0.018s
sys 0m0.021s
What you see: A request that otherwise takes milliseconds waited almost 47 seconds, exactly as long as the rating ran. In my case the model happened not to be in memory and first had to be loaded, which is why it took so long. With a warm model it is a few seconds, but the principle remains: a sync worker handles one request after the other. Ten applications at the same time, and the service is unavailable for everyone else for minutes. Point (h): open.
Step 5 – check a third claim: what does the Lotse store? Point (g) requires data minimisation. Insert the number from terminal 1.
# on werk1
kubectl -n lotse exec deploy/lotse -- cat /daten/7aeb966e.jsonExpected:
{"nummer": "7aeb966e", "name": "Jonas Berg", "stelle": "Linux-Administratorin (m/w/d) mit Kubernetes-Erfahrung", "bewertung": {"passung": 1, "begruendung": "Die Bewerbung zeigt keine relevante Erfahrung für die Stelle eines Linux-Administratorin mit Kubernetes-Erfahrung und passt daher nur sehr schlecht zur Stelle."}}
What you see: number, name, position, rating. The application text itself, which you sent, is not in the file. It goes to the model only once. That is data minimisation, point (g): fulfilled.
Step 6 – write the risk assessment. Article 13(3)
first requires the basis (intended purpose, foreseeable use, operational
environment, assets to be protected, length of use), then, for each
point of Annex I, Part I, point 2, whether and how it is implemented.
The column Stand (status) knows only two values:
erfüllt (fulfilled) and offen (open).
# on werk1
nano ~/lotse/doku/risikobewertung.md# Bewertung der Cybersicherheitsrisiken (Art. 13 Abs. 3, Anhang VII Nr. 3)
Produkt: Bewerbungslotse 1.0.2 · Stand: 2026-12-04 · Nächste Prüfung: bei jeder Version
## Grundlage
- Zweckbestimmung: Bewerbungen mit einem Sprachmodell vorsortieren
(Passung 1 bis 5 mit Begründung), Entscheidung trifft ein Mensch.
- Vorhersehbare Fehlanwendung: Dienst per NodePort ins Internet stellen,
Bewertung ungeprüft als Absage verwenden.
- Betriebsumgebung: Kubernetes beim gewerblichen Betreiber, eigenes Ollama im Cluster.
- Zu schützende Werte: Bewerberdaten (personenbezogen), Bewertungen, Verfügbarkeit.
- Nutzungsdauer: bis 12/2032 (Unterstützungszeitraum, PRODUKT.md).
## Anhang I Teil I Nr. 2
| Buchst. | Anforderung | anwendbar | Umsetzung | Nachweis | Stand |
|---|---|---|---|---|---|
| a | ohne bekannte ausnutzbare Schwachstellen | ja | Updates 1.0.1/1.0.2, VEX für nicht Betroffenes | pruefberichte/1.0.2/grype-vex.json | erfüllt |
| b | sichere Standardkonfiguration, Zurücksetzen | ja | kein Standardpasswort, ClusterIP, --reset-values | pruefberichte/1.0.2/trivy-config.json | erfüllt |
| c | Sicherheitsupdates | ja | signierte Versionen, helm upgrade; kein Automatismus, weil Betreiber Wartungsfenster plant | SECURITY.md, csaf/ | erfüllt |
| d | Schutz vor unbefugtem Zugriff, Meldung | ja | Export mit Passwort; Akten ohne Anmeldung lesbar, keine Meldung | – | offen |
| e | Vertraulichkeit | ja | nur im Cluster; kein TLS Lotse–Ollama, Akten unverschlüsselt | – | offen |
| f | Integrität | ja | signierte Images, Dateisystem nur lesbar, BW-2026-002 behoben | pruefberichte/1.0.2/cosign-verify.json | erfüllt |
| g | Datenminimierung | ja | Akte speichert Name, Stelle, Bewertung, nicht den Bewerbungstext | – | erfüllt |
| h | Verfügbarkeit | ja | ein sync-Worker: während einer Bewertung wartet jede Anfrage | – | offen |
| i | Auswirkung auf andere Dienste | ja | CPU und Speicher begrenzt | chart/templates/lotse.yaml | erfüllt |
| j | geringe Angriffsfläche | ja | ClusterIP, NetworkPolicies, ohne pip | PRODUKT.md | erfüllt |
| k | Auswirkungen begrenzen | ja | Benutzer 10001, keine Capabilities, kein SA-Token | pruefberichte/1.0.2/trivy-config.json | erfüllt |
| l | Aufzeichnung, Opt-out | ja | kein Zugriffs- oder Entscheidungsprotokoll | – | offen |
| m | Daten sicher löschen | ja | helm uninstall entfernt PVC lotse-daten; keine Einzellöschung | – | offen |
## Anhang I Teil I Nr. 1 und Teil II
- Nr. 1 (angemessenes Niveau): über die Tabelle oben, offene Punkte unten.
- Teil II Nr. 1–8: Stückliste, Behandlung, Tests, Hinweise, CVD-Konzept,
Kontaktadresse, sichere Verteilung, kostenlose Updates – siehe README.md Nr. 2 b.
## Offene Punkte (vor dem Inverkehrbringen zu schließen)
- d/e: Anmeldung für das Lesen von Akten, TLS zum Modell
- h: mehrere Worker oder Threads
- l: Zugriffs- und Entscheidungsprotokoll mit Opt-out
- m: Einzelne Akte löschen| Part | Why like this |
|---|---|
| line 3, “Nächste Prüfung” (next review) | Article 13(3): the assessment is “updated as appropriate” during the support period |
| lines 7–13, “Grundlage” (basis) | exactly the points that paragraph 3 names as minimum content |
| lines 9–10, misuse | Annex II, point 5 also asks for it; you will reuse the sentence in Drill 4 |
| column “anwendbar” (applicable) | if a point were not applicable, it would say “nein” (no) here with a justification (paragraph 4) |
| line 21, point (c) | no automatic updates, with a justification; Annex I says “including, where applicable, through automatic security updates” |
| lines 22, 23, 26, 30, 31 | the findings from Steps 3 and 4 and two known gaps from
PRODUKT.md |
| column “Nachweis” (evidence) | files you produce in Drill 3; – means: no evidence
yet |
Step 7 – count what is fulfilled.
# on werk1
grep -c '| erfüllt |' ~/lotse/doku/risikobewertung.mdThe single quotes make sure that the shell doesn’t read the vertical bars as a pipe.
Expected:
8
Step 8 – look at the open points.
# on werk1
grep '| offen |' ~/lotse/doku/risikobewertung.mdExpected:
| d | Schutz vor unbefugtem Zugriff, Meldung | ja | Export mit Passwort; Akten ohne Anmeldung lesbar, keine Meldung | – | offen |
| e | Vertraulichkeit | ja | nur im Cluster; kein TLS Lotse–Ollama, Akten unverschlüsselt | – | offen |
| h | Verfügbarkeit | ja | ein sync-Worker: während einer Bewertung wartet jede Anfrage | – | offen |
| l | Aufzeichnung, Opt-out | ja | kein Zugriffs- oder Entscheidungsprotokoll | – | offen |
| m | Daten sicher löschen | ja | helm uninstall entfernt PVC lotse-daten; keine Einzellöschung | – | offen |
What you see: 8 fulfilled, 5 open, together 13 points from (a) to (m). The five open points are not a failure of the file but its purpose: they show what still has to be done before placing on the market. You know point (l) from Day 8, when the surveillance camera was missing.
Remember: Nobody believes a risk assessment in which everything is “fulfilled”. Every line needs evidence or the honest status “open”, and every finding needs a measurement.
Save your progress? Sign up for free
Drill 3: The crash test reports
Where you are: on werk1.
What you have afterwards: four test reports for version 1.0.2 in
doku/pruefberichte/1.0.2/, sealed with a checksum file.
Annex VII, point 6 requires “reports of the tests carried out”. The
scans in scans/ are only of limited use for this: different
days, different versions, no order. A test report belongs to exactly one
version and is created on a known day.
Step 1 – create the folder for the version.
# on werk1
mkdir -p ~/lotse/doku/pruefberichte/1.0.2-p: also create the intermediate folders, herepruefberichte.
Step 2 – change into the repository.
trivy config checks the folder you are standing in.
# on werk1
cd ~/lotseStep 3 – the configuration scan. You know the same command from Day 5. Only the target is new.
# on werk1
trivy config --quiet --helm-set lotse.adminPasswort=nurfuerdenscan --format json --output doku/pruefberichte/1.0.2/trivy-config.json .| Item | Value | Meaning |
|---|---|---|
config |
– | check configuration: Containerfile, manifests, Helm charts |
--quiet |
– | no progress display |
--helm-set |
lotse.adminPasswort=nurfuerdenscan |
set the mandatory value, otherwise Trivy skips the chart (diagnosis task, Day 5) |
--format |
json |
machine-readable, so that you can count |
--output |
doku/pruefberichte/1.0.2/trivy-config.json |
into the file instead of onto the screen |
| target | . |
the current folder |
No output means: report written.
Step 4 – count the findings.
# on werk1
jq '[.Results[].Misconfigurations[]? | select(.Status == "FAIL")] | length' ~/lotse/doku/pruefberichte/1.0.2/trivy-config.jsonExpected:
9
What you see: the same 9 findings as after the hardening on Day 5. Since then the chart has changed only in image and digest. The 9 have been assessed: Ollama runs as root (supplier image), the rest is low. That is exactly why the report is in the file.
Step 5 – the vulnerability scan with VEX. You know this command too, from Day 7.
# on werk1
grype registry:werk1:5000/bewerbungslotse@sha256:429c03a79bb7f60bd1d778a87e6d60558bbb0c4a18629f353aa0cea91f885d54 --vex ~/lotse/vex/bewerbungslotse-1.0.2.openvex.json -o json --file ~/lotse/doku/pruefberichte/1.0.2/grype-vex.jsonregistry:…@sha256:…: the image directly from the registry, by digest.--vex …: apply your workshop notes.-o json --file …: write as JSON into the file.
Expected:
[0001] WARN registry communication is insecure: insecure-use-http enabled
Before that, Grype reloads its database if it is older than one day. That can take a few minutes.
Step 6 – count matches and suppressed matches.
# on werk1
jq '(.matches|length), (.ignoredMatches|length)' ~/lotse/doku/pruefberichte/1.0.2/grype-vex.json(.matches|length): number of matches.(.ignoredMatches|length): number of matches that VEX has suppressed.- The parentheses are necessary. Without them, jq reads
.matches | (length, .ignoredMatches | length)and fails, because it looks for.ignoredMatchesin the list of matches.
Expected:
228
3
Step 7 – record how old the database was. A vulnerability scan only applies to the state of its database. That is exactly what belongs in a test report.
# on werk1
jq -r '.descriptor.db.status.built' ~/lotse/doku/pruefberichte/1.0.2/grype-vex.jsonExpected (your timestamp is different):
2026-12-04T06:21:49Z
Step 8 – the signature verification as a report. So
far you have only read cosign verify on the screen. The
output on standard output is JSON; the check messages go to standard
error. With >, only the JSON ends up in the file.
# on werk1
cosign verify --key ~/lotse/beispielwerk.pub --insecure-ignore-tlog --allow-http-registry werk1:5000/bewerbungslotse@sha256:429c03a79bb7f60bd1d778a87e6d60558bbb0c4a18629f353aa0cea91f885d54 > ~/lotse/doku/pruefberichte/1.0.2/cosign-verify.jsonYou know the options from Day 6.
Expected (on the screen):
WARNING: Skipping tlog verification is an insecure practice that lacks transparency and auditability verification for the signature.
Verification for werk1:5000/bewerbungslotse@sha256:429c03a79bb7f60bd1d778a87e6d60558bbb0c4a18629f353aa0cea91f885d54 --
The following checks were performed on each of these signatures:
- The cosign claims were validated
- Existence of the claims in the transparency log was verified offline
- The signatures were verified against the specified public key
Step 9 – the check of the security advisory as a
report. csaf_validator writes its result to both
outputs. 2>&1 redirects standard error to where
standard output goes, i.e. into the file as well.
# on werk1
csaf_validator ~/lotse/csaf/bw-sa-2026-001.json > ~/lotse/doku/pruefberichte/1.0.2/csaf-validator.txt 2>&1# on werk1
cat ~/lotse/doku/pruefberichte/1.0.2/csaf-validator.txtExpected:
2026/12/04 07:41:46 warn: no remote validator specified
"/home/ubuntu/lotse/csaf/bw-sa-2026-001.json" passes the schema validation.
Step 10 – change into the report folder.
# on werk1
cd ~/lotse/doku/pruefberichte/1.0.2Step 11 – seal the reports. Like the piece of evidence on Day 8: one checksum per file shows later that nobody has embellished a report after the fact.
# on werk1
sha256sum cosign-verify.json csaf-validator.txt grype-vex.json trivy-config.json > SHA256SUMS# on werk1
cat SHA256SUMSExpected (your sums are different):
0fe6511720033a17ff9b0b5874047ac6f2be2ab7bc039c8c8284b19071944d0d cosign-verify.json
0bae597abda34aca0d8a976a9eab8ebdd5c474671be8ce40fe99e08520aae0a5 csaf-validator.txt
d6ea1198c5fbe0667059eed0ec4ff2c92da440db61ea73a49d887afec78bfb69 grype-vex.json
3c4b79950bfeb4245bfc944d9148daddbb5e5a6e7cdbf232f2bed600b242da77 trivy-config.json
Step 12 – check the seal.
# on werk1
sha256sum -c SHA256SUMS-c: don’t calculate the sums, compare them with the file.
Expected:
cosign-verify.json: OK
csaf-validator.txt: OK
grype-vex.json: OK
trivy-config.json: OK
Step 13 – look at the folder.
# on werk1
ls -lExpected:
total 1188
-rw-rw-r-- 1 ubuntu ubuntu 335 Dec 4 07:41 SHA256SUMS
-rw-rw-r-- 1 ubuntu ubuntu 319 Dec 4 07:41 cosign-verify.json
-rw-rw-r-- 1 ubuntu ubuntu 132 Dec 4 07:41 csaf-validator.txt
-rw-r--r-- 1 ubuntu ubuntu 1160260 Dec 4 07:41 grype-vex.json
-rw-rw-r-- 1 ubuntu ubuntu 37891 Dec 4 07:37 trivy-config.json
What you see: At just over 1 MB, the vulnerability report is the largest, because Grype stores the package, location and description for every match. For the file that is right: the authority should be able to follow why you consider 228 matches acceptable.
Back to your home directory:
# on werk1
cdRemember: A test report belongs to a version and a date, and it is sealed. A scan from some time of some image is not a report, it is a memory.
Save your progress? Sign up for free
Drill 4: The owner’s manual in the chart
Where you are: on werk1.
What you have afterwards: chart 1.0.3 with the nine items from Annex II in
README.mdand a notice after every installation, installed in your operation.
Annex II requires that the information accompanies the product. Your product is a Helm chart plus an image. Helm knows two places that are made exactly for this:
README.mdin the chart folder: Helm packs the file into the chart, andhelm show readmedisplays it without anyone having to install.templates/NOTES.txt: a template whose text Helm prints after every installation and every upgrade.
Step 1 – write the user information. One heading per point of Annex II, so that an inspector finds every mandatory item.
# on werk1
nano ~/lotse/chart/README.md# Bewerbungslotse – Informationen für Nutzer (Anhang II CRA)
## 1. Hersteller
Beispielwerk GmbH, Musterstraße 1, 12345 Musterstadt (fiktiv),
[email protected], https://beispielwerk.example
## 2. Schwachstellen melden
[email protected], Konzept für die koordinierte Offenlegung:
SECURITY.md im Repository, maschinenlesbar unter /.well-known/security.txt
## 3. Produkt
Bewerbungslotse, Helm-Chart bewerbungslotse 1.0.3 mit Image
werk1:5000/bewerbungslotse:1.0.2@sha256:429c03a79bb7f60bd1d778a87e6d60558bbb0c4a18629f353aa0cea91f885d54
## 4. Zweck, Funktionen, Sicherheitseigenschaften
Sortiert Bewerbungen mit einem Sprachmodell vor (Passung 1 bis 5 mit
Begründung). Die Entscheidung trifft ein Mensch. Sicherheit: signiertes
Image, kein Standardpasswort, nur im Cluster erreichbar, NetworkPolicies,
Container ohne root und mit nur lesbarem Dateisystem.
## 5. Bekannte Risiken und Fehlanwendung
- Nicht per NodePort oder Ingress ohne Anmeldung ins Internet stellen:
Akten sind mit ihrer Nummer ohne Anmeldung lesbar.
- Bewertungen nicht ungeprüft als Absage verwenden.
- Während einer Bewertung beantwortet der Dienst keine weiteren Anfragen.
## 6. EU-Konformitätserklärung
https://beispielwerk.example/bewerbungslotse/konformitaet (noch nicht ausgestellt)
## 7. Sicherheitsunterstützung
Sicherheitsupdates kostenlos als neue signierte Version, Hinweise als CSAF.
Unterstützungszeitraum bis 12/2032.
## 8. Anleitungen
- a) Inbetriebnahme: eigenes Passwort mit --set-file lotse.adminPasswort=<datei>,
Signatur vorher prüfen: cosign verify --key beispielwerk.pub --insecure-ignore-tlog <image>
- b) Änderungen: NodePort oder netzwerkregeln=false vergrößern die Angriffsfläche.
- c) Updates: helm upgrade lotse <chart> mit denselben Werten.
- d) Außerbetriebnahme: helm uninstall lotse entfernt den PVC lotse-daten mit allen Akten.
- e) Automatische Updates: gibt es nicht, deshalb nichts abzuschalten.
- f) Integration: nicht für den Einbau in andere Produkte bestimmt.
## 9. Stückliste
sbom/bewerbungslotse-1.0.2.cdx.json im Repository und als signierte
Attestation am Image (cosign verify-attestation --type cyclonedx).Section 5 takes up the open points from your risk assessment. That is no coincidence: what you have not fixed, you must at least tell the operator. Section 8 covers points (a) to (f) of Annex II, point 8, including those that mean nothing to do for you ((e), (f)).
Step 2 – write the notice after installation.
NOTES.txt is a Helm template. Helm fills in the double curly braces. The
block with if only appears if the operator chooses a
NodePort, i.e. exactly the misuse from section 5.
# on werk1
nano ~/lotse/chart/templates/NOTES.txtBewerbungslotse {{ .Chart.AppVersion }} (Chart {{ .Chart.Version }}) ist installiert.
Hersteller: Beispielwerk GmbH
Sicherheit: [email protected]
Updates bis: 12/2032
Anleitung: helm show readme <chart>
{{- if eq .Values.lotse.service.typ "NodePort" }}
ACHTUNG: NodePort {{ .Values.lotse.service.nodePort }} ist von außen erreichbar.
Akten sind mit ihrer Nummer ohne Anmeldung lesbar (Anhang II Nr. 5).
{{- end }}| Part | Meaning |
|---|---|
{{ .Chart.AppVersion }} |
version of the program from Chart.yaml |
{{ .Chart.Version }} |
version of the chart from Chart.yaml |
{{- if eq … "NodePort" }} |
only print if the service type is NodePort; - removes
the line break before it |
{{ .Values.lotse.service.nodePort }} |
the port from the values |
Step 3 – increase the chart version. The chart has
changed, the program hasn’t. Helm keeps the two apart:
version counts the chart, appVersion the
program in it. A changed chart with the same version number would be a
second vehicle with the same type plate.
# on werk1
nano ~/lotse/chart/Chart.yamlapiVersion: v2
name: bewerbungslotse
description: Sortiert Bewerbungen mit einem Sprachmodell vor
type: application
version: 1.0.3
appVersion: "1.0.2"Step 4 – check the chart.
# on werk1
helm lint ~/lotse/chart --set lotse.adminPasswort=nurfuerdenlintlint: check the chart for errors in structure and templates.--set lotse.adminPasswort=…: the mandatory value from Day 5, otherwise the template aborts.
Expected:
==> Linting /home/ubuntu/lotse/chart
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failed
The INFO line is a recommendation, not an error.
Step 5 – read what a customer sees before installing.
# on werk1
helm show chart ~/lotse/chartExpected:
apiVersion: v2
appVersion: 1.0.2
description: Sortiert Bewerbungen mit einem Sprachmodell vor
name: bewerbungslotse
type: application
version: 1.0.3
# on werk1
helm show readme ~/lotse/chart | head -12show readme: print the chart’sREADME.md.| head -12: only the first twelve lines.
Expected:
# Bewerbungslotse – Informationen für Nutzer (Anhang II CRA)
## 1. Hersteller
Beispielwerk GmbH, Musterstraße 1, 12345 Musterstadt (fiktiv),
[email protected], https://beispielwerk.example
## 2. Schwachstellen melden
[email protected], Konzept für die koordinierte Offenlegung:
SECURITY.md im Repository, maschinenlesbar unter /.well-known/security.txt
Step 6 – bring your own operation to chart 1.0.3.
# on werk1
helm upgrade lotse ~/lotse/chart -n lotse --set-file lotse.adminPasswort=$HOME/geheim/admin-passwort --wait --timeout 5mYou know the options from Day 7.
Expected:
Release "lotse" has been upgraded. Happy Helming!
NAME: lotse
LAST DEPLOYED: Fri Dec 4 07:40:17 2026
NAMESPACE: lotse
STATUS: deployed
REVISION: 12
DESCRIPTION: Upgrade complete
TEST SUITE: None
NOTES:
Bewerbungslotse 1.0.2 (Chart 1.0.3) ist installiert.
Hersteller: Beispielwerk GmbH
Sicherheit: [email protected]
Updates bis: 12/2032
Anleitung: helm show readme <chart>
What you see: Your notice is under
NOTES:. The warning is missing, because your operation uses
ClusterIP. Your revision number is probably lower.
Step 7 – check whether the pod has restarted.
# on werk1
kubectl -n lotse get podsExpected:
NAME READY STATUS RESTARTS AGE
lotse-6c74cfd867-hrslb 1/1 Running 0 17h
ollama-5f5ffc5cf-7jxtd 1/1 Running 1 (11h ago) 19h
What you see: Both pods have kept running for hours. README and NOTES don’t change a pod template, so Kubernetes had nothing to restart. A pure documentation change costs no downtime.
Remember: The owner’s manual travels with the product:
README.mdin the chart forhelm show readme,NOTES.txtfor the warning exactly when the operator needs it.
Save your progress? Sign up for free
Drill 5: Declaration and type plate
Where you are: on werk1.
What you have afterwards: the EU declaration of conformity as a draft, a signed type plate on the image 1.0.2, a table of contents without
FEHLTand everything committed.
Step 1 – draft the declaration under Annex V. The eight points of the model, in the same order. At the top it says clearly that it is a draft, and why.
# on werk1
nano ~/lotse/doku/eu-konformitaetserklaerung-1.0.2.md# EU-Konformitätserklärung (Anhang V CRA) – ENTWURF
Status: ENTWURF, nicht ausgestellt. Ausstellen erst, wenn
doku/risikobewertung.md keine offenen Punkte mehr hat (Art. 13 Abs. 12).
1. Produkt: Bewerbungslotse, Version 1.0.2, Container-Image
werk1:5000/bewerbungslotse@sha256:429c03a79bb7f60bd1d778a87e6d60558bbb0c4a18629f353aa0cea91f885d54,
Helm-Chart bewerbungslotse 1.0.3
2. Hersteller: Beispielwerk GmbH, Musterstraße 1, 12345 Musterstadt (fiktiv)
3. Die alleinige Verantwortung für die Ausstellung dieser Konformitätserklärung
trägt der Hersteller.
4. Gegenstand der Erklärung: Bewerbungslotse 1.0.2, identifiziert durch den
Image-Digest unter Nr. 1
5. Der oben beschriebene Gegenstand der Erklärung erfüllt die einschlägigen
Harmonisierungsrechtsvorschriften der Union: Verordnung (EU) 2024/2847
(ABl. L, 2024/2847, 20.11.2024)
6. Harmonisierte Normen, gemeinsame Spezifikationen, Zertifizierung: keine;
Lösungen siehe doku/risikobewertung.md
7. Notifizierte Stelle: keine. Verfahren: interne Kontrolle (Modul A),
Anhang VIII Teil I
8. Weitere Angaben: Unterstützungszeitraum bis 12/2032
Unterzeichnet für und im Namen von: Beispielwerk GmbH
Musterstadt, ____-__-__
Name, Funktion, Unterschrift: ______________________
CE| Point | What Annex V says | How it is implemented here |
|---|---|---|
| 1, 4 | unique identification, object “allowing traceability” | the digest, not just “1.0.2” |
| 3 | sole responsibility | taken over word for word |
| 6 | standards or specifications | “keine” (none) and the reference to the solutions (Annex VII, point 5) |
| 7 | notified body, procedure | module A needs no body |
| last line | CE marking | for software on the declaration (Article 30(1)); in the original, the CE mark as an image |
The date and the signature stay empty. A signed declaration with five open points would be a false declaration.
Step 2 – write the type plate. The declaration is for humans. The type plate is the same core statement in a form that machines can check: which product, which legal act, which procedure, which status.
# on werk1
nano ~/lotse/doku/typschild-1.0.2.json{
"produkt": "Bewerbungslotse",
"version": "1.0.2",
"chart": "bewerbungslotse 1.0.3",
"hersteller": "Beispielwerk GmbH",
"rechtsakte": ["VO (EU) 2024/2847"],
"verfahren": "interne Kontrolle (Modul A), Anhang VIII Teil I",
"normen": [],
"unterstuetzung_bis": "2032-12",
"erklaerung": "https://beispielwerk.example/bewerbungslotse/konformitaet",
"status": "entwurf",
"offen": ["d", "e", "h", "l", "m"]
}offen (open) lists the points from the risk assessment.
An operator who reads the type plate thus sees directly what is still
missing.
Step 3 – check whether the file is valid JSON.
# on werk1
jq -r .status ~/lotse/doku/typschild-1.0.2.json-r: print text without quotation marks..status: only the fieldstatus.
Expected:
entwurf
If there is a typo in the JSON, jq reports a parse error
here with line and column.
Step 4 – rivet on the type plate. You attach the
file as a signed attestation to the digest of 1.0.2, just like the parts
list and VEX on Day 6. What is new is the custom type:
for parts list and VEX there are short names (cyclonedx,
openvex). For your type plate you use a URL that belongs to
you. It doesn’t have to be reachable; it is only a unique name.
# on werk1
cosign attest --key $HOME/geheim/beispielwerk.key --signing-config $HOME/lotse/signing-config.json --allow-http-registry --yes --type https://beispielwerk.example/typschild/v1 --predicate $HOME/lotse/doku/typschild-1.0.2.json werk1:5000/bewerbungslotse@sha256:429c03a79bb7f60bd1d778a87e6d60558bbb0c4a18629f353aa0cea91f885d54| Item | Value | Meaning |
|---|---|---|
--key |
$HOME/geheim/beispielwerk.key |
the factory’s private key |
--signing-config |
$HOME/lotse/signing-config.json |
without public services (Day 6) |
--allow-http-registry |
– | the registry speaks HTTP |
--yes |
– | no confirmation prompt |
--type |
https://beispielwerk.example/typschild/v1 |
custom predicate type; v1 allows a changed format
later |
--predicate |
$HOME/lotse/doku/typschild-1.0.2.json |
the content of the statement |
| target | werk1:5000/bewerbungslotse@sha256:429c… |
exactly the image 1.0.2 |
Cosign asks for the key’s password
(~/geheim/cosign-passwort).
Expected (after entering the password):
Using payload from: /home/ubuntu/lotse/doku/typschild-1.0.2.json
Step 5 – verify the type plate like a customer. Whoever receives the image checks with the public key whether the type plate comes from the factory and belongs to exactly this digest.
# on werk1
cosign verify-attestation --key ~/lotse/beispielwerk.pub --insecure-ignore-tlog --allow-http-registry --type https://beispielwerk.example/typschild/v1 werk1:5000/bewerbungslotse@sha256:429c03a79bb7f60bd1d778a87e6d60558bbb0c4a18629f353aa0cea91f885d54 > typschild-attestation.json> redirects the verified attestation into a file. The
check messages still appear on the screen.
Expected:
WARNING: Skipping tlog verification is an insecure practice that lacks transparency and auditability verification for the attestation.
Verification for werk1:5000/bewerbungslotse@sha256:429c03a79bb7f60bd1d778a87e6d60558bbb0c4a18629f353aa0cea91f885d54 --
The following checks were performed on each of these signatures:
- The cosign claims were validated
- Existence of the claims in the transparency log was verified offline
- The signatures were verified against the specified public key
Step 6 – read the type of the statement.
# on werk1
jq -r '.payload | @base64d | fromjson | .predicateType' typschild-attestation.json@base64d decodes the payload, fromjson
reads it as JSON (from Day 6).
Expected:
https://beispielwerk.example/typschild/v1
Step 7 – read the type plate.
# on werk1
jq '.payload | @base64d | fromjson | .predicate | {version, status, offen, unterstuetzung_bis}' typschild-attestation.json.predicate: your type plate.{version, status, offen, unterstuetzung_bis}: only these four fields in a new object.
Expected:
{
"version": "1.0.2",
"status": "entwurf",
"offen": [
"d",
"e",
"h",
"l",
"m"
],
"unterstuetzung_bis": "2032-12"
}
Step 8 – see what the type plate is riveted to.
# on werk1
jq '.payload | @base64d | fromjson | .subject' typschild-attestation.jsonExpected:
[
{
"name": "werk1:5000/bewerbungslotse",
"digest": {
"sha256": "429c03a79bb7f60bd1d778a87e6d60558bbb0c4a18629f353aa0cea91f885d54"
}
}
]
What you see: The type plate names the digest itself, and the signature covers it too. Nobody can unscrew the plate and attach it to another image without the verification failing.
Step 9 – the cross-check: look for the type plate on the wrong vehicle. Version 1.0.1 did not get a type plate. What does Cosign say if you ask for one there?
# on werk1
cosign verify-attestation --key ~/lotse/beispielwerk.pub --insecure-ignore-tlog --allow-http-registry --type https://beispielwerk.example/typschild/v1 werk1:5000/bewerbungslotse@sha256:87e72e42d0ecc84eef601e079b05c0be8b0d979a6f86a30f76d1e2fbb92a657e > /dev/null
echo $?Expected:
WARNING: Skipping tlog verification is an insecure practice that lacks transparency and auditability verification for the attestation.
Error: none of the attestations matched the predicate type: https://beispielwerk.example/typschild/v1, found: https://sigstore.dev/cosign/sign/v1,https://cyclonedx.org/bom,https://openvex.dev/ns
error during command execution: none of the attestations matched the predicate type: https://beispielwerk.example/typschild/v1, found: https://sigstore.dev/cosign/sign/v1,https://cyclonedx.org/bom,https://openvex.dev/ns
1
What you see: Exit code 1, and Cosign
lists what is attached to the image 1.0.1: signature, parts list, VEX.
No type plate. For a pipeline this is a clear rule: no type plate, no
deployment.
Step 10 – update the table of contents. Five gaps
are filled. The declaration gets the status ENTWURF
(draft), the risk assessment names its open points.
# on werk1
nano ~/lotse/doku/README.md# Technische Dokumentation Bewerbungslotse
Inhalt nach Anhang VII CRA (VO (EU) 2024/2847), Konformitätsbewertung
nach Modul A (Anhang VIII Teil I). Gilt für Version 1.0.2.
| Nr. | Anhang VII verlangt | Ort | Stand |
|---|---|---|---|
| 1 a | Zweckbestimmung | PRODUKT.md | vorhanden |
| 1 b | Softwareversionen | PRODUKT.md, chart/Chart.yaml | vorhanden |
| 1 c | Abbildungen (nur Hardware) | entfällt, reine Software | entfällt |
| 1 d | Informationen für Nutzer (Anhang II) | chart/README.md | vorhanden |
| 2 a | Architektur | doku/aufbau.md | vorhanden |
| 2 b | Schwachstellenbehandlung | sbom/, vex/, csaf/, SECURITY.md, security.txt, SCHWACHSTELLEN.md | vorhanden |
| 2 c | Herstellung und Überwachung | doku/aufbau.md | vorhanden |
| 3 | Bewertung der Cybersicherheitsrisiken | doku/risikobewertung.md | vorhanden, 5 Punkte offen |
| 4 | Unterstützungszeitraum | PRODUKT.md | vorhanden |
| 5 | Normen und Spezifikationen | dieser Abschnitt, unten | vorhanden |
| 6 | Prüfberichte | doku/pruefberichte/1.0.2/ | vorhanden |
| 7 | EU-Konformitätserklärung | doku/eu-konformitaetserklaerung-1.0.2.md | ENTWURF |
| 8 | Stückliste auf Verlangen | sbom/bewerbungslotse-1.0.2.cdx.json | vorhanden |
## Nr. 5: Normen und Spezifikationen
- Harmonisierte Normen: keine angewandt. Die Lösungen für Anhang I
Teil I und II stehen in doku/risikobewertung.md.
- Sonstige technische Spezifikationen: CycloneDX 1.7 und SPDX 2.3
(Stückliste), OpenVEX 0.2.0, CSAF 2.0, RFC 9116 (security.txt),
Sigstore-Signaturformat (Cosign), CVSS 3.1.Step 11 – count the gaps again.
# on werk1
grep -c FEHLT ~/lotse/doku/README.mdExpected:
0
grep exits with exit code 1 here, because
it found nothing. The number is the result you are interested in.
Step 12 – look at what is new.
# on werk1
git -C ~/lotse status --shortExpected:
M chart/Chart.yaml
?? chart/README.md
?? chart/templates/NOTES.txt
?? doku/
M: modified file that is already tracked.??: new files and folders that are not tracked yet.
The file typschild-attestation.json lies in your home
directory, not in the repository. It is only your check result.
Step 13 – commit.
# on werk1
git -C ~/lotse add chart doku# on werk1
git -C ~/lotse commit -m "Technische Dokumentation 1.0.2 (Anhang VII CRA), Chart 1.0.3 mit Nutzerinformationen"Step 14 – record the chart version as a tag. The
program stays v1.0.2. For the chart you create a tag of its
own, so that you can find exactly this state again later.
# on werk1
git -C ~/lotse tag chart-1.0.3# on werk1
git -C ~/lotse show --stat --format=%s HEAD--stat: the number of changed lines per file.--format=%s: only the first line of the commit message.
Expected:
Technische Dokumentation 1.0.2 (Anhang VII CRA), Chart 1.0.3 mit Nutzerinformationen
chart/Chart.yaml | 2 +-
chart/README.md | 54 ++
chart/templates/NOTES.txt | 11 +
doku/README.md | 28 +
doku/aufbau.md | 32 +
doku/eu-konformitaetserklaerung-1.0.2.md | 27 +
doku/pruefberichte/1.0.2/SHA256SUMS | 4 +
doku/pruefberichte/1.0.2/cosign-verify.json | 2 +
doku/pruefberichte/1.0.2/csaf-validator.txt | 2 +
doku/pruefberichte/1.0.2/grype-vex.json | 1 +
doku/pruefberichte/1.0.2/trivy-config.json | 935 ++++++++++++++++++++++++++++
doku/risikobewertung.md | 44 ++
doku/typschild-1.0.2.json | 13 +
13 files changed, 1154 insertions(+), 1 deletion(-)
What you see: grype-vex.json has only
one line, because Grype writes the whole JSON without line breaks. Trivy
indents, hence 935 lines.
Remember: The declaration is for humans, the type plate for machines. Both say the same thing, and both remain a “draft” as long as the risk assessment has open points.
Save your progress? Sign up for free
Diagnosis task
A colleague wants to check whether the NodePort warning from
NOTES.txt really appears, without switching over the
operation for it. She knows helm template, which renders a
chart without installing anything, and tries it with exactly that
file:
The symptom:
# on werk1
helm template lotse ~/lotse/chart --set lotse.adminPasswort=x --set lotse.service.typ=NodePort --show-only templates/NOTES.txt--show-only templates/NOTES.txt: render only this one template.
Expected:
Error: could not find template templates/NOTES.txt in chart
But the file is in the chart: helm lint read it and
helm upgrade showed its text. Write down what you suspect
before you read on.
Solution path.
Step 1 – the cause. NOTES.txt is not a
Kubernetes resource but a text for the human after an installation.
helm template only renders manifests that would go to the
cluster, and leaves NOTES out. For --show-only, the
template therefore doesn’t exist.
Step 2 – the fix: a trial installation that changes
nothing. helm upgrade with
--dry-run=client renders everything like a real upgrade but
sends nothing to the cluster. The NOTES are at the end.
# on werk1
helm upgrade lotse ~/lotse/chart -n lotse --set-file lotse.adminPasswort=$HOME/geheim/admin-passwort --set lotse.service.typ=NodePort --dry-run=client --hide-secret| Item | Meaning |
|---|---|
--set lotse.service.typ=NodePort |
the misuse whose warning you want to see |
--dry-run=client |
only render, send nothing to the cluster |
--hide-secret |
don’t print the content of the secret with the password |
Expected (excerpt – the manifests before it are left
out; look for the line NOTES:):
NOTES:
Bewerbungslotse 1.0.2 (Chart 1.0.3) ist installiert.
Hersteller: Beispielwerk GmbH
Sicherheit: [email protected]
Updates bis: 12/2032
Anleitung: helm show readme <chart>
ACHTUNG: NodePort 30080 ist von außen erreichbar.
Akten sind mit ihrer Nummer ohne Anmeldung lesbar (Anhang II Nr. 5).
Step 3 – check that nothing has happened.
# on werk1
helm list -n lotseExpected:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
lotse lotse 12 2026-12-04 07:40:17.450239042 +0000 UTC deployed bewerbungslotse-1.0.3 1.0.2
Still revision 12 (or yours), no new revision.
Without --hide-secret, your admin password would appear
Base64-encoded in the output, i.e. practically in plain text, and
possibly in your terminal’s scrollback or in a CI log.
Remember:
helm templateshows what would go to the cluster, not what the human reads. For NOTES you use--dry-run=client, and with--hide-secretthe password stays out of the log.
Challenge
Under Article 13(13), the market surveillance authority can request the file long after placing on the market.
- Calculate until when you must keep the technical documentation for
1.0.2. Assumption from
PRODUKT.md: placing on the market on 11 December 2027, support period until December 2032. - Build an archive of the file that you could send to the authority, and show that a second archive from the same state is identical byte for byte.
Solution.
Step 1 – ten years from placing on the market.
# on werk1
date -d "2027-12-11 + 10 years" +%F-d "<date> + 10 years": GNUdatecalculates with calendar years.+%F: date asYYYY-MM-DD.
Expected:
2037-12-11
The support period ends in December 2032. Article 13(13) requires the longer of the two periods, i.e. until 11 December 2037. If the support period only ended in 2038, 2038 would apply.
Step 2 – create a protected folder for archives.
# on werk1
mkdir -m 700 ~/archivStep 3 – build the archive from the tag.
git archive packs files exactly as they are in a commit,
not as they currently lie in the working folder. You take the file, the
chart and the evidence for 1.0.2, without the older parts lists and
scans.
# on werk1
git -C ~/lotse archive --format=tar.gz --prefix=bewerbungslotse-1.0.2/ -o ~/archiv/technische-doku-1.0.2.tar.gz chart-1.0.3 doku chart PRODUKT.md SECURITY.md SCHWACHSTELLEN.md security.txt beispielwerk.pub sbom/bewerbungslotse-1.0.2.cdx.json sbom/bewerbungslotse-1.0.2.spdx.json vex/bewerbungslotse-1.0.2.openvex.json csaf| Item | Value | Meaning |
|---|---|---|
--format |
tar.gz |
compressed tar archive |
--prefix |
bewerbungslotse-1.0.2/ |
all files lie under this folder in the archive |
-o |
~/archiv/technische-doku-1.0.2.tar.gz |
output file |
| state | chart-1.0.3 |
the tag from Drill 5 |
| paths | doku chart PRODUKT.md … |
only these folders and files |
No output means: archive written.
Step 4 – count what is inside.
# on werk1
tar -tzf ~/archiv/technische-doku-1.0.2.tar.gz | wc -l-t: list the content instead of unpacking.-z: gzip-compressed.-f <file>: this archive file.| wc -l: count lines, one per entry.
Expected:
35
The number also includes the folder entries.
Step 5 – the archive’s seal.
# on werk1
sha256sum ~/archiv/technische-doku-1.0.2.tar.gzExpected:
ca2161720cee36c1a2796bd4f71d9c08b41aa388735f486a2f327ca26e75a485 /home/ubuntu/archiv/technische-doku-1.0.2.tar.gz
Your sum is different, because your commits have different timestamps.
Step 6 – build a second archive from the same state.
# on werk1
git -C ~/lotse archive --format=tar.gz --prefix=bewerbungslotse-1.0.2/ -o ~/archiv/zweiter-lauf.tar.gz chart-1.0.3 doku chart PRODUKT.md SECURITY.md SCHWACHSTELLEN.md security.txt beispielwerk.pub sbom/bewerbungslotse-1.0.2.cdx.json sbom/bewerbungslotse-1.0.2.spdx.json vex/bewerbungslotse-1.0.2.openvex.json csaf# on werk1
sha256sum ~/archiv/zweiter-lauf.tar.gzExpected:
ca2161720cee36c1a2796bd4f71d9c08b41aa388735f486a2f327ca26e75a485 /home/ubuntu/archiv/zweiter-lauf.tar.gz
What you see: the same sum. git archive
sets the commit time as the timestamp of all files, not the current
time. So the same tag always produces the same archive. You therefore
don’t have to guard it yourself for ten years: the tag in the repository
is enough, and the checksum in your file proves that a newly built
archive corresponds to the one sent back then. You would nevertheless
sign the original that was sent.
Step 7 – remove the copy.
# on werk1
rm ~/archiv/zweiter-lauf.tar.gzRemember: The longer period is what counts for retention: ten years from placing on the market or the support period. An archive from a Git tag is reproducible and therefore easy to prove.
Save your progress? Sign up for free
Checkpoint
# on werk1
helm list -n lotseExpected:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
lotse lotse 12 2026-12-04 07:40:17.450239042 +0000 UTC deployed bewerbungslotse-1.0.3 1.0.2
# on werk1
git -C ~/lotse log --oneline --decorate -2Expected:
4dbb9e1 (HEAD -> main, tag: chart-1.0.3) Technische Dokumentation 1.0.2 (Anhang VII CRA), Chart 1.0.3 mit Nutzerinformationen
0c1e008 BW-SA-2026-001 Revision 2: aktiv ausgenutzt
# on werk1
grep -c "| offen |" ~/lotse/doku/risikobewertung.mdExpected:
5
# on werk1
cd ~/lotse/doku/pruefberichte/1.0.2
sha256sum -c --quiet SHA256SUMS
echo $?
cd--quiet: report only faulty files.
Expected:
0
# on werk1
ls -l ~/archivExpected:
total 688
-rw-rw-r-- 1 ubuntu ubuntu 703012 Dec 4 07:48 technische-doku-1.0.2.tar.gz
Test yourself
- Why may you not sign the EU declaration of conformity for 1.0.2 today, although the technical documentation is complete?
- Where do you affix the CE marking for a pure software product?
- A colleague writes “erfüllt, Dienst ist stabil” (fulfilled, service is stable) for point (h) in the risk assessment. What is missing?
- What distinguishes a test report in the file from an arbitrary scan
from
scans/? - You only change the
README.mdin the chart. Why do you nevertheless increase the chart version, but not theappVersion? - Why is a signed type plate on the digest worth more than the same JSON file in the repository?
Answers:
- Because the declaration states that compliance with Annex I has been demonstrated (Article 28(1), Article 13(12)). The risk assessment shows five open points ((d), (e), (h), (l), (m)). A complete file only means: everything is described, including what is missing.
- On the EU declaration of conformity or on the website accompanying the software product; in that case the section must be easily and directly accessible (Article 30(1)).
- The measurement. In Drill 2,
/gesundwaited almost 47 seconds while a rating was running. Without evidence, “stable” is a claim, and here a false one. - It belongs to exactly one version (digest), has a known point in time (e.g. the state of the Grype database) and is sealed with a checksum.
- The chart is a different package than before, so it needs a new
version number; otherwise there would be two different charts 1.0.2. The
program in the image is unchanged, so
appVersionstays 1.0.2. - The signature shows that it comes from the factory, and the
subjectbinds it to exactly one digest. Anyone can change a file in the repository or assign it to another image; verification withverify-attestationthen fails.
Interview note
“What belongs in the technical documentation under the CRA?” A good answer presents Annex VII not as a list but as a process: a table of contents that assigns every point to a location, a risk assessment that has evidence or the status “open” for each point of Annex I, Part I, point 2, sealed test reports per version and a declaration of conformity that is only signed when nothing is open any more. Whoever adds that they also ship the core statement as a signed attestation on the image digest and build archives reproducibly from Git tags shows that they treat compliance like code.
Enterprise note
In larger organisations, the technical documentation doesn’t live in Markdown files next to the code but in a GRC tool or a document management system with an approval workflow, and the management board signs the declaration of conformity. The building blocks remain the same, and many teams now generate them in the pipeline: test reports as build artefacts, attestations in the in-toto format, a policy controller in the cluster (Kyverno, Sigstore Policy Controller) that rejects images without a valid type plate. If a product also falls under the AI Act, Article 28(3) CRA requires a single declaration of conformity for all legal acts, and Article 31(3) a single technical documentation. That is exactly where the next days lead.
Summary
- Order under Article 13(12): technical documentation, conformity assessment (here module A), then the EU declaration of conformity and CE marking.
- Annex VII has eight points. A table of contents with location and status per point makes gaps countable.
- The risk assessment (Article 13(3)) needs a basis and, for each point of Annex I, Part I, point 2, a decision with evidence; points that are not applicable are justified.
- Test reports belong to a version and a date and are sealed with
sha256sum. - The user information under Annex II travels in the chart:
README.mdforhelm show readme,NOTES.txtfor notices after installation. - The declaration follows Annex V; for software, the CE mark is on the declaration or the website.
- A signed type plate as an attestation binds the core statement to the digest.
- Retention is ten years from placing on the market or the support period, whichever is longer (Article 13(13)).
Commands at a glance
| Command | Purpose |
|---|---|
git -C <repo> ls-files |
files that Git manages |
grep -c FEHLT <file> |
count gaps |
kubectl -n <ns> get deploy,svc,pvc,networkpolicy |
components for the architecture |
time curl -s <url>/gesund |
measure response time, also under load |
trivy config --quiet --helm-set … --format json --output <file> . |
configuration scan as a report |
grype registry:<image>@<digest> --vex <vex> -o json --file <file> |
vulnerability scan as a report |
jq -r '.descriptor.db.status.built' <grype.json> |
state of the Grype database |
cosign verify … > <file> |
signature verification as a report |
sha256sum <files> > SHA256SUMS /
sha256sum -c SHA256SUMS |
seal and check reports |
helm lint <chart> --set … |
check a chart |
helm show readme <chart> |
read user information without installing |
helm upgrade … --dry-run=client --hide-secret |
view NOTES without changing anything |
cosign attest … --type <own URL> --predicate <json> <image>@<digest> |
attach your own type plate |
cosign verify-attestation … --type <own URL> <image>@<digest> |
verify the type plate |
git -C <repo> tag <name> |
record a state |
date -d "<date> + 10 years" +%F |
calculate the retention period |
git -C <repo> archive --format=tar.gz --prefix=<folder>/ -o <file> <tag> <paths> |
reproducible archive |