P08 — Cluster-Scale Attestation: Keylime on k3s, weights released only to attested nodes
Status
red· Claim PC4 at cluster scale · Corpus anchor L4 §1.3 remote attestation; maturity M6 (scalable attestation — the gap Keylime is the OSS answer to); registry need note: Keylime = CNCF-attested open source · Effort L · Execution host multi-node (k3s/VMs)
What it proves
PC4 at cluster scale — remote attestation (“prove it to me before I hand you anything sensitive”) is not a single-machine trick: the open-source Keylime project (CNCF) lets a fleet of nodes (here: k3s agents) attest their boot state (TPM PCR / IMA measurement), and a workload’s secrets (e.g. encrypted model weights) are released only after the node attests. When the gate prints, you will have run the corpus’s “attestation as the gate for weight release” (L4 §1.3, SL4-ish) as an actual multi-node system on one server.
Why it matters
Scalable attestation is corpus maturity M6 — a gap the book flags, and Keylime is the OSS answer to it. Keylime is the open-source way to do remote attestation at datacenter scale, including measured-boot (IMA) + PCR verification and revocation; if any user can stand it up, the “scalable attestation” claim (matrix M6) is partially demoted toward “exists”. The secret-release gate is the whole product gesture of the corpus: weights handed over only to machines that prove their state.
Why this, not that
| We do (Y) | We don’t (X) | Because |
|---|---|---|
| k3s (one-binary Kubernetes) on the Linux server | Full k3s + EKS/GKE machinery | k3s gives real multi-agent + pod scheduling + node internals, installable in minutes on one host; the claim under test is attestation gating, not Kubernetes variety |
| Keylime (CNCF) for the verifier/registrar/agent role | Hand-rolled tpm2_quote loop per node | Keylime is the open-source way to do remote attestation at datacenter scale, including measured-boot (IMA) + PCR verification and revocation — if any user can stand it up, the “scalable attestation” claim (matrix M6) is partially demoted toward “exists” |
| Release the (mock) weights secret only after explicit attest pass | Treat attestation as a flag in a log | The secret-release gate is the whole product gesture of the corpus: weights handed over only to machines that prove their state |
| Use a real TPM on the node where possible; swtpm where not | Require TPM hardware everywhere | Keylime supports both; k3s nodes without TPM prove the maneuver with swtpm, nodes with TPM exercise the real-chip path |
What you need
- Linux server (x86_64) with ≥4 cores, ≥8 GiB RAM — one master (control-plane) node; add agent nodes as desired.
- k3s (one-liner install) + Helm, or plain yaml drift — script supports either.
- Optional: a TPM2 chip on test nodes (for the real-hardware path).
How to run it
cd poc/P08-keylime-k3s— enter the runbook directory.bash scripts/01-install-k3s.sh— get.k3s.io one-liner -> control plane.bash scripts/02-install-keylime.sh— helm/k3s manifests for verifier + registrar.bash scripts/03-register-agent.sh— install keylime agent + attestation agent on node.bash scripts/04-attest-and-release.sh— run attestation; bind the “weights” secret to the result.bash scripts/05-tamper-node.sh— break node state -> attestation fails -> secret NOT released.
What “done” looks like
bash scripts/04-attest-and-release.sh
# MUST print: POC-P08-OK-ATTESTED-RELEASE (secret delivered to attested node)
bash scripts/05-tamper-node.sh
# MUST print: POC-P08-TAMPERED-REJECTED (secret withheld after state change)Where the evidence goes
Copy into evidence/:
k3s_version.txt,keylime_version.txtattest_ok.log— attestation result + secret release event.tamper_denied.log— attestation failure + denied release (the load-bearing negative).
What this does not prove
- Keylime’s real work is measured-boot (IMA/initramfs) + PCRs; on swtpm the measurement story is weaker — use a real TPM node for the strongest claim, or state the limit.
- K3s containers run in host networking or CNI; the agent/verifier must see each other (same bridge VPN is fine).
- This proves attestation-gated secret release in a cluster, NOT that weights are fully protected in use. Weights still live in the node’s RAM post-release — corpus L5’s gap.
- Keylime API changed 6.x → 7.x: pin the Helm chart version in the script and note it.