Skip to content
Compliance engineering: CRA and AI Act on Kubernetes · Chapter 2 of 20 Day 1: What the CRA wants from the product – classification, support period, attack surface

Day 1: What the CRA wants from the product – classification, support period, attack surface

Goal: capture your own product the way the Cyber Resilience Act sees it: what is shipped, what it consists of, where it can be reached, which category it falls into and how long the factory must deliver security updates – recorded in a product profile in Git · Duration: about 90 min · Prerequisite: Preparation completed

State before this chapter

From the Preparation, werk1 and werk2 run a k3s cluster, the zot registry and the Bewerbungslotse with Ollama in the namespace lotse. Check quickly:

# on werk1
kubectl -n lotse get deploy -o wide

Expected (age differs):

NAME     READY   UP-TO-DATE   AVAILABLE   AGE   CONTAINERS   IMAGES                             SELECTOR
lotse    1/1     1            1           25m   lotse        werk1:5000/bewerbungslotse:1.0.0   app=lotse
ollama   1/1     1            1           25m   ollama       docker.io/ollama/ollama:0.40.19    app=ollama

Both Deployments are ready. You don’t need the application files from the Preparation today.

Introduction

Before a vehicle is allowed on the road, the type inspection wants to know three things: What is it – a car, a truck, a hazardous goods transporter? What does it consist of? And how long does the factory guarantee that it will carry out recalls? The Cyber Resilience Act asks your product the same questions. Everything else depends on the answers: whether you may assess conformity yourself or need an inspection body, how long you must deliver security updates and which parts you have to keep an eye on at all.

Today you answer these questions for the Bewerbungslotse, and not from memory but from the running system: What does the Helm chart really ship? Which ports and routes are open? What is inside the image? At the end you have a product profile that lives in Git next to the code and is versioned with it. It is the beginning of the technical documentation that you complete on Day 9.

Important: This course is not legal advice. The quotations come from the official English version of Regulation (EU) 2024/2847 in the Official Journal of 20 November 2024. For a real product, read the full text and get legal advice.

Today you will learn:

  • to find the terms “product with digital elements”, “manufacturer” and “support period” in the legal text and apply them to your product,
  • to determine with helm template and helm get values what a chart actually ships,
  • to name images unambiguously by their digest instead of their tag,
  • to capture the attack surface of a product: Services, open ports, routes, reachability,
  • to look inside an image without starting it as in production,
  • to create a product profile as a file in Git – and to recognise when it is no longer accurate.

Background

The picture of the day: the type inspection before market launch

Before it goes on sale, a new vehicle model gets a profile: vehicle class, list of assemblies, openings and connections, warranty and recall period. The vehicle class decides whether the factory may confirm itself that everything complies with the regulations or whether an inspection organisation has to take a look. A car with standard equipment: factory confirmation. A hazardous goods transporter: inspection body.

  • Vehicle class = classification under the CRA. Default-category product, important product of class I or II, critical product.
  • List of assemblies = components. Today still by hand, from Day 2 as a machine-readable parts list.
  • Openings and connections = attack surface. Every port and every route is a door through which someone gets in.
  • Recall period = support period. That is how long the factory must fix vulnerabilities.
  • Type plate = product profile. It is attached to the vehicle, not in a folder in the basement – in your case it lives in Git next to the code.

The terms

Term Meaning In the picture
product with digital elements software or hardware product including its remote data processing (Article 3, point 1) the vehicle
manufacturer develops the product and markets it under its own name (Article 3, point 13) the factory
important product category from Annex III, class I or II vehicle with special approval
critical product category from Annex IV hazardous goods transporter
module A internal control: the manufacturer assesses conformity itself (Article 32(1)) factory confirmation
support period time during which the manufacturer handles vulnerabilities (Article 13(8)) recall period
attack surface all the ways in which someone comes into contact with the product doors, flaps, connections
digest checksum that names an image unambiguously vehicle identification number

Remember: Classification first, then everything else. If you don’t know which vehicle class you are building, you don’t know who does the acceptance either.

What the law requires

Is the Bewerbungslotse a product within the meaning of the CRA? Article 3, point 1 defines:

‘product with digital elements’ means a software or hardware product and its remote data processing solutions, including software or hardware components being placed on the market separately;

The Bewerbungslotse is software that you ship to customers – yes. And under Article 3, point 13, a manufacturer is whoever “develops or manufactures […] and markets them under its name or trademark, whether for payment, monetisation or free of charge”. That applies too. If you offered the software only as an online service without shipping it, things would look different: recital 12 assigns pure cloud services (SaaS) to the NIS2 Directive, not to the CRA.

Which category does it fall into? Article 7(1) says that products which have “the core functionality of a product category set out in Annex III” are important products. Annex III lists 19 categories in class I – for example identity management systems, browsers, password managers, VPNs, SIEM, operating systems, routers – and four in class II, among them “Hypervisors and container runtime systems that support virtualised execution of operating systems and similar environments” as well as firewalls. Annex IV names three critical categories, for example smartcards. Software for pre-sorting job applications is on none of the lists. The Bewerbungslotse is a default-category product.

The second sentence of Article 7(1) is important: the integration of an important product “shall not in itself render the product in which it is integrated” important as well. The fact that the image contains a Debian operating system userland therefore does not make the Lotse a class I operating system.

Who assesses conformity? For default-category products, Article 32(1) allows the internal control procedure (module A): you assess yourself and declare on your own responsibility that the product and processes meet the requirements. For class I this is only possible if you fully apply harmonised standards or common specifications; class II always needs an inspection body.

How long must you deliver security updates? Article 13(8), third subparagraph:

Without prejudice to the second subparagraph, the support period shall be at least five years. Where the product with digital elements is expected to be in use for less than five years, the support period shall correspond to the expected use time.

And Article 13(19) requires that the end date “including at least the month and the year, is clearly and understandably specified at the time of purchase in an easily accessible manner”. Under paragraph 8, the considerations that led to the period belong in the technical documentation.

And the components? Annex I, Part II, point 1 requires the manufacturer to identify and document vulnerabilities and components, “including by drawing up a software bill of materials in a commonly used and machine-readable format covering at the very least the top-level dependencies of the products”. That is the subject of Day 2. Today you lay the foundation: you know which parts exist.

When does this apply?

Under Article 71(2), the main obligations apply from 11 December 2027, the reporting obligations from Article 14 already since 11 September 2026. A product that you place on the market in 2027 is therefore one you build according to these rules today.

Drill 1: What am I actually shipping?

Where you are: on werk1.

What you have afterwards: a list of all Kubernetes objects and images that your chart ships, the factory settings and the unambiguous digests of the running images.

What a customer gets from you is decided by the Helm chart. Instead of relying on your memory, you let Helm generate the finished manifests and read them.

Step 1 – generate the manifests and count the objects. helm template renders the chart the way helm install would, but sends nothing to the cluster and prints the manifests instead. With grep you filter the lines containing kind: (which objects) and image: (which images):

# on werk1
helm template lotse ~/lotse/chart --namespace lotse | grep -n 'kind:\|image:'
Option Meaning
template lotse ~/lotse/chart renders the chart from the folder under the release name lotse
--namespace lotse sets the namespace, as during installation
grep -n 'kind:\|image:' shows only lines with kind: or image:, with line number; \| means “or”

Expected:

4:kind: PersistentVolumeClaim
17:kind: Service
32:kind: Service
45:kind: Deployment
60:          image: werk1:5000/bewerbungslotse:1.0.0
80:kind: Deployment
99:          image: docker.io/ollama/ollama:0.40.19

What you see: five objects – a volume, two Services, two Deployments – and two images. One of them you build yourself, the other comes from a supplier. You ship both.

Step 2 – the factory settings. What every customer gets who changes nothing is in the computed values of the release:

# on werk1
helm get values lotse -n lotse --all
  • get values lotse shows the values of the release lotse.
  • --all shows all computed values, including the defaults from values.yaml, not only the ones you overrode during installation.

Expected:

COMPUTED VALUES:
lotse:
  adminPasswort: lotse
  image: werk1:5000/bewerbungslotse:1.0.0
  nodePort: 30080
ollama:
  image: docker.io/ollama/ollama:0.40.19
  knoten: werk1
  modell: qwen3:4b-instruct
  speicher: 10Gi

What you see: The admin password is lotse out of the factory. Every customer who installs the chart without their own values has the same password – and it is public in your chart. Note this for the profile.

Step 3 – the vehicle identification numbers. A tag like 1.0.0 is just a name. It can point to a different image at any time if someone rebuilds and pushes. What is unambiguous is the digest, the checksum of the image manifest. Kubernetes remembers which digest it actually loaded:

# on werk1
kubectl -n lotse get pods -o custom-columns=POD:.metadata.name,IMAGE:.status.containerStatuses[0].image,DIGEST:.status.containerStatuses[0].imageID

-o custom-columns= builds a table from fields you choose. Each column is ÜBERSCHRIFT:pfad.im.objekt (heading:path.in.object):

Column Path Content
POD .metadata.name name of the pod
IMAGE .status.containerStatuses[0].image the image as written in the manifest
DIGEST .status.containerStatuses[0].imageID the image that was really loaded

Expected:

POD                       IMAGE                              DIGEST
lotse-f45b4fd95-klwkv     werk1:5000/bewerbungslotse:1.0.0   werk1:5000/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f
ollama-6f468b48b4-z4xdm   docker.io/ollama/ollama:0.40.19    docker.io/ollama/ollama@sha256:7e8c7ba387b11b09dcce1eff1118b1ab433564ed263434a7730c209f2ee346f4

What you see: After @sha256: is the vehicle identification number of each image. When you say on Day 3 “version 1.0.0 is affected”, you mean exactly this image – and exactly this digest. Your digests are different because your image was built at a different time.

Step 4 – the bought-in model. The language model is also a component, with origin and licence. Ollama shows both:

# on werk1
kubectl -n lotse exec deploy/ollama -- ollama show qwen3:4b-instruct

Expected (excerpt):

  Model
    architecture        qwen3
    parameters          4.0B
    context length      262144
    embedding length    2560
    quantization        Q4_K_M
…
  License
    Apache License
    Version 2.0, January 2004

What you see: four billion parameters, shrunk to 4 bits per weight (Q4_K_M), under the Apache License 2.0. For the CRA, the model is a file that your product loads; for the AI Act it is the heart of the AI system from Day 10 onwards.

Remember: What you ship is not in your head but in the rendered chart. And an image is named unambiguously only by its digest – the tag is merely the sign on the door.

Save your progress? Sign up for free

Drill 2: Where can the product be reached?

Where you are: on werk1, one command on werk2.

What you have afterwards: a list of all doors: Services in the cluster, open ports on werk1, routes of the program – and the insight into who reaches which door.

Annex I, Part I, point 2(j) requires products to “be designed, developed and produced to limit attack surfaces, including external interfaces”. You can only reduce what you know.

Step 1 – the Services in the cluster.

# on werk1
kubectl get svc -A

Expected:

NAMESPACE     NAME             TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                  AGE
default       kubernetes       ClusterIP   10.43.0.1       <none>        443/TCP                  29m
kube-system   kube-dns         ClusterIP   10.43.0.10      <none>        53/UDP,53/TCP,9153/TCP   29m
kube-system   metrics-server   ClusterIP   10.43.46.109    <none>        443/TCP                  29m
lotse         lotse            NodePort    10.43.146.193   <none>        8080:30080/TCP           26m
lotse         ollama           ClusterIP   10.43.238.68    <none>        11434/TCP                26m

What you see: Two Services belong to your product. lotse is of type NodePort – port 30080 is open on every node, for anyone who can reach the node on the network. ollama only has an address inside the cluster.

Step 2 – open ports on werk1.

# on werk1
sudo ss -tlnp
Option Meaning
-t TCP only
-l listening sockets only
-n ports as numbers, not as names
-p shows the process; this needs sudo

Expected (excerpt – the lines with * or 0.0.0.0, i.e. reachable from outside):

LISTEN 0      4096         0.0.0.0:22         0.0.0.0:*    users:(("sshd",pid=344121,fd=3),("systemd",pid=1,fd=187))
LISTEN 0      4096               *:6443             *:*    users:(("k3s-server",pid=360686,fd=12))
LISTEN 0      4096               *:5000             *:*    users:(("zot",pid=360094,fd=9))
LISTEN 0      4096               *:10250            *:*    users:(("k3s-server",pid=360686,fd=212))

What you see: SSH, the API server (6443), the registry (5000) and the kubelet (10250). All other ports listen only on 127.0.0.1. Port 30080 does not show up: k3s forwards NodePorts via firewall rules in the kernel, not via a listening process. So ss alone does not show the whole attack surface.

Step 3 – the routes of the program. A NodePort is one door; behind it are many rooms. Flask lists all routes without you having to read the source code. To do this, you start a throwaway container from your image:

# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 flask routes
  • run --rm starts a container and deletes it again when it ends.
  • flask routes replaces the start command from the Containerfile; Flask finds app.py in the working directory /app by itself.

Expected:

Endpoint              Methods  Rule
--------------------  -------  ---------------------------------
anlage_herunterladen  GET      /api/anlagen/<path:name>
anlage_hochladen      POST     /api/bewerbungen/<nummer>/anlagen
bewerbung_anlegen     POST     /api/bewerbungen
bewerbung_lesen       GET      /api/bewerbungen/<nummer>
export                GET      /api/admin/export
gesund                GET      /gesund
static                GET      /static/<path:filename>

What you see: seven routes. You wrote six of them yourself; Flask creates static on its own. Only export is protected by a password. One route accepts a whole path (<path:name>) – remember it.

Step 4 – from werk2. Can the Lotse really be reached from another machine?

# on werk2
curl -s -o /dev/null -w '%{http_code}\n' http://werk1:30080/gesund
  • -o /dev/null throws away the content of the response.
  • -w '%{http_code}\n' prints only the HTTP status code.

Expected:

200

Step 5 – Ollama from a foreign namespace. Ollama has no NodePort. But who can reach it inside the cluster? You start a pod in a completely different namespace and ask Ollama for its models:

# on werk1
kubectl run neugier --image=docker.io/curlimages/curl:8.17.0 --restart=Never --rm -i --command -- curl -s http://ollama.lotse:11434/api/tags
Option Meaning
run neugier starts a pod named neugier (“curiosity”) – without -n in the namespace default
--image=…curl:8.17.0 a small image that contains only curl
--restart=Never a single pod, not a Deployment
--rm -i show the output and delete the pod afterwards
--command -- curl … run this command instead of the image’s start command
ollama.lotse the Service ollama in the namespace lotse

Expected (the JSON line shortened):

{"models":[{"name":"qwen3:4b-instruct","model":"qwen3:4b-instruct", … "parameter_size":"4.0B","quantization_level":"Q4_K_M", …}]}
pod "neugier" deleted from default namespace

What you see: Any pod from another namespace talks to Ollama without any login. The same interface can also load and delete models. In the picture: the workshop door to the driver-assistance system is open to all employees of the factory, not only to the department that needs it.

Remember: The attack surface is larger than the list of ports: a NodePort opens all the routes behind it, and a ClusterIP service without network rules is open to every pod in the cluster.

Save your progress? Sign up for free

Drill 3: What is inside the image?

Where you are: on werk1.

What you have afterwards: a first overview of the image’s components – operating system, packages, language, user.

At the end of the Preparation you saw that 124 of the 141 MB of your image come from the base image. You now query directly what is inside it – each time with a throwaway container.

Step 1 – which operating system?

# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 cat /etc/os-release

Expected (excerpt):

PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
VERSION_ID="13"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.8

What you see: Underneath your Python program lies Debian 13.8. As the manufacturer, you are just as responsible for vulnerabilities in these packages as for your own code.

Step 2 – how many Debian packages?

# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 dpkg-query -W | wc -l
  • dpkg-query -W lists all installed Debian packages, one per line.
  • | wc -l counts the lines. The counting runs on werk1, not in the container.

Expected:

87

Step 3 – Python and the Python packages.

# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 python --version

Expected:

Python 3.12.16
# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 pip list

Expected:

Package            Version
------------------ --------
blinker            1.8.2
certifi            2024.2.2
charset-normalizer 3.3.2
click              8.1.7
Flask              3.0.3
gunicorn           22.0.0
idna               3.6
itsdangerous       2.2.0
Jinja2             3.1.4
MarkupSafe         2.1.5
packaging          24.0
pip                25.0.1
requests           2.31.0
urllib3            2.2.1
Werkzeug           3.0.3

What you see: your 14 packages – and a fifteenth that is not in requirements.txt: pip itself, from the base image. That is a component too.

Step 4 – two parts that are in almost every image. The C library and OpenSSL show up particularly often in security advisories:

# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 dpkg-query -W openssl libssl3t64 libc6 zlib1g

dpkg-query -W <package> … shows only the named packages with their exact version.

Expected:

libc6:amd64 2.41-12+deb13u5
libssl3t64:amd64    3.5.9-1~deb13u1
openssl 3.5.9-1~deb13u1
zlib1g:amd64    1:1.3.dfsg+really1.3.1-1+deb13u1

What you see: versions with the suffix +deb13u5 or ~deb13u1. These are versions that Debian itself has patched with security fixes. A scanner must know this, otherwise it reports holes that were closed long ago – that is what Day 3 is about.

Step 5 – who runs in the container?

# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 id

Expected:

uid=0(root) gid=0(root) groups=0(root)

What you see: The Lotse runs as root. Together with the route that accepts whole paths, that is a combination you remember for Day 5.

Remember: Your vehicle consists mostly of supplier parts: 87 Debian packages, Python and 15 Python packages around a good 80 lines of your own. The parts list starts with looking inside.

Save your progress? Sign up for free

Drill 4: The product profile

Where you are: on werk1.

What you have afterwards: a Git repository ~/lotse with code, chart and a product profile PRODUKT.md, versioned and marked with the tag v1.0.0.

Everything you found out today you write into a file. It does not live in a wiki but in Git next to the code – that way it changes with every version, and later you can see what applied to which version.

Step 1 – create the repository.

# on werk1
cd ~/lotse
# on werk1
git init -b main
  • init creates an empty repository in the current folder (the folder .git).
  • -b main names the first branch main.

Expected:

Initialized empty Git repository in /home/ubuntu/lotse/.git/

Step 2 – who is writing? Every commit carries a name and an e-mail address. You set them for this repository only:

# on werk1
git config user.name "Beispielwerk Labor"
# on werk1
git config user.email "[email protected]"

Without --global the setting applies only here. The domain .example is reserved for examples and belongs to no one.

Step 3 – the profile.

# on werk1
nano ~/lotse/PRODUKT.md
~/lotse/PRODUKT.md new file
# Produktsteckbrief Bewerbungslotse

## Produkt

- Name: Bewerbungslotse
- Version: 1.0.0 (Image werk1:5000/bewerbungslotse:1.0.0, Chart bewerbungslotse 1.0.0)
- Hersteller: Beispielwerk GmbH (fiktiv)
- Zweckbestimmung: sortiert Bewerbungen mit einem Sprachmodell vor
  (Passung 1 bis 5 mit Begründung)
- Auslieferung: Container-Image und Helm-Chart; wir betreiben es auch selbst

## Einstufung nach CRA

- Produkt mit digitalen Elementen: ja (Software, Art. 3 Nr. 1)
- Rolle: Hersteller (Art. 3 Nr. 13)
- Anhang III (wichtig, Klasse I/II): nein – keine der Kategorien
- Anhang IV (kritisch): nein
- Ergebnis: Standardprodukt, Konformität durch interne Kontrolle
  (Modul A, Art. 32 Abs. 1)

## Unterstützungszeitraum (Art. 13 Abs. 8 und 19)

- Inverkehrbringen geplant: 12/2027
- Ende des Unterstützungszeitraums: 12/2032 (fünf Jahre)
- Begründung: Personalsoftware wird typischerweise mehrere Jahre
  genutzt; das Grundimage python:3.12-slim (Debian 13) und
  Ollama sind Komponenten mit eigenen Lebenszyklen

## Bestandteile (Stand Tag 1)

| Teil | Version | Herkunft |
|---|---|---|
| Programm app.py | 1.0.0 | eigen |
| Python-Pakete | 14 Stück, requirements.txt | PyPI |
| Python | 3.12.16 | Grundimage |
| Debian-Pakete | 87 Stück | Grundimage Debian 13 |
| Ollama | 0.40.19 | docker.io/ollama/ollama |
| Sprachmodell | qwen3:4b-instruct, Apache 2.0 | Ollama-Bibliothek |

## Angriffsfläche (Stand Tag 1)

| Schnittstelle | Erreichbar von | Schutz |
|---|---|---|
| NodePort 30080 (alle Routen von app.py) | jedem, der einen Knoten erreicht | keiner, außer Export (Passwort) |
| /api/admin/export | wie oben | Passwort, Voreinstellung lotse |
| Ollama :11434 | jedem Pod im Cluster | keiner |

## Offene Punkte

- Stückliste (SBOM) fehlt
- Schwachstellen der Bestandteile unbekannt
- Voreingestelltes Admin-Passwort
- Container läuft als root
- keine Zugriffs- und Entscheidungsprotokolle
- Akten in emptyDir, gehen bei Neustart verloren

The sections follow the questions of the day. Two places deserve a second look:

  • The support period is a decision of the manufacturer, not a calculation. Five years is the minimum. Under Article 13(8), the justification belongs in the technical documentation – here is its beginning. The end date is given with month and year, as paragraph 19 requires.
  • The open points are nothing to be ashamed of; they are your work plan. A profile that claims everything is fine is worthless.

Step 4 – what is in the folder?

# on werk1
git status --short

--short shows one line per file. ?? means: not yet under version control.

Expected:

?? Containerfile
?? PRODUKT.md
?? app.py
?? chart/
?? requirements.txt

Step 5 – add everything and commit it.

# on werk1
git add .

add . stages all files in the folder for the next commit.

# on werk1
git commit -m "Bewerbungslotse 1.0.0 mit Produktsteckbrief"

Expected:

[main (root-commit) 64fd9fd] Bewerbungslotse 1.0.0 mit Produktsteckbrief
 8 files changed, 277 insertions(+)
 create mode 100644 Containerfile
 create mode 100644 PRODUKT.md
 create mode 100644 app.py
 create mode 100644 chart/Chart.yaml
 create mode 100644 chart/templates/lotse.yaml
 create mode 100644 chart/templates/ollama.yaml
 create mode 100644 chart/values.yaml
 create mode 100644 requirements.txt

Step 6 – mark the version.

# on werk1
git tag v1.0.0

A Git tag is a fixed name for a commit. From now on, v1.0.0 belongs to exactly this state of code, chart and profile – and to the image with the digest from Drill 1. The command prints nothing.

# on werk1
git log --oneline --decorate

Expected:

64fd9fd (HEAD -> main, tag: v1.0.0) Bewerbungslotse 1.0.0 mit Produktsteckbrief

Remember: The type plate belongs on the vehicle: the profile lives in Git next to the code, carries the same version and openly names what is still missing.

Save your progress? Sign up for free

Diagnosis task

On Friday evening a colleague quickly changed the admin password in the running cluster – not in the chart, but directly on the Deployment. This is how you reproduce it:

# on werk1
kubectl -n lotse set env deploy/lotse ADMIN_PASSWORT=Herbst2026

Expected:

deployment.apps/lotse env updated

On Monday someone checks the profile against the cluster and finds a contradiction: helm get values says the password is lotse, but logging in with it fails.

# on werk1
curl -s -o /dev/null -w '%{http_code}\n' -u admin:lotse http://werk1:30080/api/admin/export

-u admin:lotse sends user and password via HTTP Basic authentication.

Expected:

401

Find out what is going on, and bring the cluster back to the state of the chart.

Solution path:

  1. What does Helm say?

    # on werk1
    helm get values lotse -n lotse --all

    Expected (excerpt): adminPasswort: lotse – Helm only knows what it installed itself.

  2. What is really running? kubectl set env --list shows the environment variables of a Deployment:

    # on werk1
    kubectl -n lotse set env deploy/lotse --list

    Expected:

    # Deployment lotse, container lotse
    OLLAMA_URL=http://ollama:11434
    MODELL=qwen3:4b-instruct
    ADMIN_PASSWORT=Herbst2026

    The cluster has drifted from the chart. Helm noticed nothing; helm history lotse -n lotse lists only the installation.

  3. Back to the state of the chart with helm upgrade:

    # on werk1
    helm upgrade lotse ~/lotse/chart -n lotse

    Expected (excerpt):

    Error: UPGRADE FAILED: conflict occurred while applying object lotse/lotse apps/v1, Kind=Deployment: Apply failed with 1 conflict: conflict with "kubectl-set" using apps/v1: .spec.template.spec.containers[name="lotse"].env[name="ADMIN_PASSWORT"].value

    Helm 4 writes objects via server-side apply. The API server remembers for each field who set it last (the field manager). The field ADMIN_PASSWORT now belongs to kubectl-set, and Helm does not silently overwrite other managers’ fields. That is good: the drift becomes visible instead of disappearing unnoticed. This shows who owns the fields:

    # on werk1
    kubectl -n lotse get deploy lotse --show-managed-fields -o yaml | grep -n 'manager:'

    Expected:

    61:    manager: helm
    73:    manager: kubectl-rollout
    87:    manager: kubectl-set
    121:    manager: k3s
  4. You decide deliberately that the chart applies, and force it:

    # on werk1
    helm upgrade lotse ~/lotse/chart -n lotse --force-conflicts

    --force-conflicts takes over the fields for Helm in case of conflicts.

    Expected (excerpt):

    Release "lotse" has been upgraded. Happy Helming!
    STATUS: deployed
    REVISION: 3

    Revision 2 is the failed attempt. Afterwards ADMIN_PASSWORT=lotse applies again, and curl … -u admin:lotse … returns 200.

The lesson for the profile: it describes what you ship – the chart. You must regularly check what runs in the cluster against it. And a password that someone has to change in operation does not belong in a chart’s values as plain text – more on that on Day 5.

Challenge

Classify three other products under the CRA, using only the text of Annexes III and IV and Article 7(1):

  1. a password manager that a company sells as a desktop program,
  2. a Kubernetes distribution like k3s that a company distributes under its own name,
  3. a web shop system that internally contains a firewall library.

For each, write down the class and the reference before you read the solution.

Solution:

  1. Class I – “Password managers” is Annex III, class I, point 3. Module A is only possible if harmonised standards or common specifications are applied in full (Article 32(2)).
  2. Very probably class II – a Kubernetes distribution brings a container runtime with it, and Annex III, class II, point 1 names “Hypervisors and container runtime systems that support virtualised execution of operating systems and similar environments”. Whether its core functionality falls under this is decided by the technical description of the categories that the Commission lays down by implementing act under Article 7(4). Read it before you commit yourself.
  3. Default-category product – under the second sentence of Article 7(1), integrating a product with the core functionality of a category does not by itself make the overall product an important product. The core functionality of a web shop is selling, not the firewall.

Save your progress? Sign up for free

Checkpoint

# on werk1
git -C ~/lotse log --oneline --decorate

-C ~/lotse runs git as if you were in this folder.

Expected (your commit number differs):

64fd9fd (HEAD -> main, tag: v1.0.0) Bewerbungslotse 1.0.0 mit Produktsteckbrief
# on werk1
git -C ~/lotse status --short

Expected: no output – everything is committed.

# on werk1
grep -n 'Ende des Unterstützungszeitraums' ~/lotse/PRODUKT.md

Expected:

24:- Ende des Unterstützungszeitraums: 12/2032 (fünf Jahre)
# on werk1
kubectl -n lotse set env deploy/lotse --list

Expected: ADMIN_PASSWORT=lotse in the last line – the cluster matches the chart again.

Test yourself

  1. Why is the Bewerbungslotse a default-category product, even though the image contains a Debian userland and operating systems are listed in Annex III, class I?
  2. What is the difference between the tag 1.0.0 and the digest sha256:b2ff… of an image, and which of the two belongs in a profile?
  3. Why does ss -tlnp on werk1 not show port 30080, even though it can be reached from werk2?
  4. What information about the support period does the CRA require, and where must it be given?
  5. How did you recognise in the diagnosis task that the cluster had drifted from the chart – and why is it good that helm upgrade failed at first?
  6. A customer asks: “We only run your Lotse internally. Does the CRA apply to you then?” What do you answer?

Answers:

  1. Under the second sentence of Article 7(1), integrating a product with the core functionality of a category does not make the overall product important itself. The core functionality of the Lotse is pre-sorting job applications, and that is in no category of Annex III or IV.
  2. The tag is a mutable name; after a new push it can point to a different image. The digest is the checksum of the manifest and names exactly one image. Both belong in the profile: the tag for humans, the digest for unambiguous identification.
  3. k3s forwards NodePorts via rules in the kernel; there is no process listening on 30080. ss only shows listening sockets. That is why you capture the attack surface via the Services in the cluster and a test from outside.
  4. At least five years, shorter only if the expected use time is shorter (Article 13(8), third subparagraph); the end date with at least month and year, easily accessible at the time of purchase (paragraph 19); the considerations behind it in the technical documentation (paragraph 8, fifth subparagraph).
  5. helm get values showed lotse, but kubectl set env --list showed Herbst2026. The failure showed that another field manager (kubectl-set) owns the field – the drift became visible instead of Helm overwriting it unnoticed.
  6. Yes, insofar as you are the manufacturer: you ship the software as a product, and the manufacturer’s obligations apply to that regardless of how the customer uses it. The customer, as a user, has other obligations, for example from NIS2 if it falls within its scope.

Interview note

“How do you proceed when a product needs to become CRA-compliant?” – A good answer: classification first (default, class I or II, critical), because it determines the conformity assessment procedure. Then an inventory from the real delivery artefact – rendered chart, images with digest, contents of the images – instead of from an architecture slide. Add the support period with justification and end date. If you want to go further: everything is versioned next to the code, and a regular comparison between chart and cluster shows drift before it is noticed in an audit.

Enterprise note

In larger companies the product profile often already exists under another name – as an entry in the software catalogue (such as Backstage), in the CMDB or in the product portfolio. What counts for the CRA is that it exists per version and is linked to the delivery artefact. A common approach is to keep classification and support period as metadata in the repository and have the build pipeline carry them into the release notes and customer documentation. GitOps tools such as Argo CD or Flux help against drift: they show differences between Git and cluster or reset them immediately.

Summary

  • The Bewerbungslotse is a product with digital elements, and you are its manufacturer. It falls into no category from Annex III or IV and is therefore a default-category product with module A.
  • The support period is at least five years; you set 12/2032 and justified it.
  • helm template and helm get values --all show what the chart ships: five objects, two images, a preset admin password. Digests name the images unambiguously.
  • The attack surface: NodePort 30080 with seven routes for anyone on the network, Ollama for every pod in the cluster, plus API server, kubelet and registry on werk1.
  • The image contains Debian 13.8 with 87 packages, Python 3.12.16 and 15 Python packages; the Lotse runs as root.
  • The product profile lives in ~/lotse/PRODUKT.md, versioned with the tag v1.0.0.
  • Helm 4 makes drift between chart and cluster visible via server-side apply.

Commands at a glance

Command Purpose
helm template <release> <chart> --namespace <ns> render manifests without installing
helm get values <release> -n <ns> --all all computed values of a release
kubectl get pods -o custom-columns=…imageID loaded images with digest
kubectl exec deploy/ollama -- ollama show <model> details and licence of a model
kubectl get svc -A all Services in the cluster
sudo ss -tlnp listening TCP ports with process
podman run --rm <image> flask routes routes of a Flask application
kubectl run <name> --image=… --rm -i --restart=Never --command -- <command> throwaway pod for a test
podman run --rm <image> cat /etc/os-release operating system in the image
podman run --rm <image> dpkg-query -W Debian packages in the image
podman run --rm <image> pip list Python packages in the image
git init -b main create a repository
git config user.name "<name>" author for this repository
git add . / git commit -m "<text>" commit the current state
git tag <name> mark a version
kubectl -n <ns> set env deploy/<name> --list environment variables of a Deployment
helm upgrade <release> <chart> -n <ns> --force-conflicts force the chart state on field conflicts

Contents

More