Skip to content
Workload and AI agent identity · Chapter 20 of 20 Appendix C: Tools and versions

Appendix C: Tools and versions

What this appendix is for: Which software ran in the lab in which version, where does it live, which port does it listen on, and which clients and programs did the course build? The versions come from id1 and id2 (Ubuntu 24.04.5 LTS, kernel 6.8.0-151-generic) on 3 Dec 2026.

Software in the lab

Software Version in the lab How installed Day
k3s (Kubernetes) v1.37.2+k3s1 install script with INSTALL_K3S_VERSION 0
kubectl v1.37.2+k3s1 (included in k3s) with k3s 0
step (Smallstep CLI) 0.31.0 .deb from GitHub, checksum verified 0
jq 1.7.1 (package 1.7.1-3ubuntu0.24.04.3) apt-get install jq 0
Python 3.12.3 base system 0
PyJWT 2.7.0 (package python3-jwt 2.7.0-1ubuntu0.6) apt-get install python3-jwt 10
curl 8.5.0 base system 0
PostgreSQL (warehouse database in the cluster) image postgres:17-alpine pod 1
OpenJDK 25.0.5.1 apt-get install openjdk-25-jre-headless 4
Keycloak 26.8.2 ZIP archive to /opt/keycloak, kc.sh start-dev 4
SPIRE server 1.16.0 archive to /opt/spire on id1 5
SPIRE agent 1.16.0 (image ghcr.io/spiffe/spire-agent:1.16.0) DaemonSet 5
ghostunnel v1.11.5 (image ghostunnel/ghostunnel:v1.11.5) sidecar container 7
Ollama 0.40.19 archive to /opt/ollama 10
Language model qwen3:4b-instruct ollama pull 10

You can check every version yourself, for example:

# on id1
cat /opt/keycloak/version.txt

Expected:

Keycloak - Version 26.8.2
# on id1
/opt/spire/bin/spire-server --version

Expected:

1.16.0

Services and ports on id1

Port Address Service Day
6443 all k3s API server 0
8080 all Keycloak (HTTP, lab mode) 4
8081 all SPIRE server 5
8090 all warehouse service (lagerdienst.service) 10
8091 all tool desk, MCP server (lager-mcp.service) 13
11434 127.0.0.1 Ollama 10

Measured with sudo ss -tlnp. Keycloak over HTTP and without TLS is for the lab only; in production TLS goes in front of it, and start-dev becomes start (Enterprise note, Day 4).

Important paths

Path Machine Contents Day
~/.kube/config id1 your own kubeconfig (mode 600) 0
/etc/rancher/k3s/config.yaml id1 API server settings (issuer, anonymous paths) 2, 3
/opt/keycloak/conf/keycloak.conf id1 Keycloak configuration (truststore, hostname) 4
/opt/spire/ id1 SPIRE server, socket /run/spire-server/api.sock 5
/run/spire/sockets/agent.sock in the pods the agent’s Workload API 5
/opt/ollama/ id1 Ollama, models under /daten/ollama 10
~/kurs/10/lagerdienst.py id1 warehouse service (version from Day 15) 10, 15
~/kurs/13/mcp_lager.py id1 tool desk (version from Day 15) 13–15
~/kurs/12/assistent-v5.py id1 assistant with a confirmation prompt before the exchange 12
/opt/inventur/ id2 inventory, zugang.env only for the inventur account 16
~/kurs/<tag>/ id1 working files for each day 0–16

Clients in the realm gebaeude

Client Type Badge What for Day
kasse confidential, service account federated-jwt (Kubernetes badge) first federation 4
lager-pruefer confidential, service account federated-jwt challenge on Day 4 4
ladenkasse-cli public – device login for humans 9
assistent confidential, service account, may exchange federated-jwt (laden/assistent-neu) AI agent 10–14
assistent-cli public – Anna logs in to the assistant 11
http://172.16.0.126:8091/mcp confidential, may exchange federated-jwt (laden/lager-mcp) MCP server 13
mcp-cli public – Anna logs in to the tool desk 13
inventur confidential, service account secret final case 16

Queried with kcadm.sh get clients -r gebaeude --fields clientId,publicClient,clientAuthenticatorType,serviceAccountsEnabled. Only inventur still identifies itself with a secret – as a reminder of the final case.

Standards and specifications

Abbreviation Title Where in the course
RFC 7519 JSON Web Token (JWT) every token, Day 0
RFC 7517 JSON Web Key (JWK) the cluster’s JWKS, Day 3
OpenID Connect Discovery 1.0 discovery document Day 3, 9
RFC 7523 JWT as client assertion federation, Day 4
SPIFFE, X.509-SVID, JWT-SVID workload identity Day 5–8
RFC 8628 OAuth 2.0 Device Authorization Grant device login, Day 9
RFC 8693 OAuth 2.0 Token Exchange Day 11
RFC 8414 Authorization Server Metadata Day 13
RFC 9728 OAuth 2.0 Protected Resource Metadata Day 13
RFC 8707 Resource Indicators Day 13 (ignored by Keycloak)
MCP 2026-07-28 Model Context Protocol, authorization Day 13

Cleaning up after the course

The course changed both VMs permanently: k3s, Keycloak, SPIRE and Ollama run as services. If you need the VMs for something else, the easiest way is to reinstall them. On its own, k3s uninstalls itself with the script it ships with:

# on id2
sudo /usr/local/bin/k3s-agent-uninstall.sh
# on id1
sudo /usr/local/bin/k3s-uninstall.sh

The remaining services on id1 are called keycloak, spire-server, ollama, lagerdienst and lager-mcp. You stop each one with sudo systemctl disable --now <dienst> and then delete its unit file under /etc/systemd/system/ and its folder under /opt (Ollama models: /daten/ollama).

Contents

More