EQTY Operator CLI
Sign pod manifests with vcomp-coco-cli so the PodVM boots under a signed, measured CoCo policy.
vcomp-coco-cli wraps Kata’s genpolicy and adds the pieces needed for a signed
measured policy (cc_init_data): it generates the policy for a pod manifest, signs it
with an operator key, and writes the result back into the manifest as an annotation the
guest enforces at boot.
Signing is optional — pods run on the EQTY PodVM without it — but a signed policy is what ties the workload you intended to the workload the TEE actually measured.
Install
Install the deb, rpm, or wheel from the vcomp-coco-cli releases, or take the standalone
vcomp-coco-cli-0.0.5-linux-amd64 binary from the artifacts folder. The binary is
self-contained and only needs chmod +x and a spot on PATH:
chmod +x vcomp-coco-cli-0.0.5-linux-amd64
mv vcomp-coco-cli-0.0.5-linux-amd64 /usr/local/bin/vcomp-coco-cliGetting the genpolicy assets
The CLI needs the genpolicy assets from the same Kata release as the guest —
genpolicy, rules.rego, and genpolicy-settings.json, shipped together in
kata-tools-static:
# Get the Kata 3.32.0 tools bundle (needs zstd).
cd /tmp
curl -fsSLO https://github.com/kata-containers/kata-containers/releases/download/3.32.0/kata-tools-static-3.32.0-amd64.tar.zst
tar -I zstd -xf kata-tools-static-3.32.0-amd64.tar.zst
# The CLI only needs these three, together in one dir.
mkdir -p /opt/eqty/genpolicy-3.32.0
cp opt/kata/bin/genpolicy \
opt/kata/share/defaults/kata-containers/{rules.rego,genpolicy-settings.json} \
/opt/eqty/genpolicy-3.32.0/
# Double-check you got the stock 3.32.0 files.
cd /opt/eqty/genpolicy-3.32.0 && sha256sum -c <<'EOF'
e0f5c402d5ae7a85fdf3e4655974d525de09e83206108bb75b22357121034ae4 genpolicy
1a755a5cf6cc6433ee79093a9cb48aff74a03dcf6e907da0157ea2860e32754d rules.rego
c542084030cab02298e56dff6f2e070827b519361cdfff1cdc0e5e0e52bdd887 genpolicy-settings.json
EOFPoint the CLI at that directory with EQTY_GENPOLICY_DIR.
Signing a pod manifest
The operator key is a P-256 key that stays with the operator — generate it once:
openssl ecparam -name prime256v1 -genkey -noout -out operator-key.pemThen sign the manifest. --kata-runtime-class must match the runtime class on the node
(kata-qemu-tdx, kata-qemu-snp, or kata-qemu-nvidia-gpu-tdx for GPU-TDX), and --gpu
is only for the GPU PodVM:
export EQTY_GENPOLICY_DIR=/opt/eqty/genpolicy-3.32.0
# First boot: --allow-exec is debug-only, but lets you reach the notary directly.
vcomp-coco-cli sign -f pod.yaml -o signed.yaml --platform tdx \
--kata-runtime-class kata-qemu-nvidia-gpu-tdx \
--operator-key operator-key.pem --ttl 1h --gpu --allow-exec
kubectl apply -f signed.yamlFor production, drop --allow-exec — kubectl exec is then denied by policy, which is
expected — and expose the notary through a sidecar instead.
Deploying a signed workload
Confirm the runtime class and the CoCo daemonset are in place first:
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
kubectl get runtimeclass # kata-qemu-snp (or kata-qemu-tdx)
kubectl get pods -n coco-system # kata-as-coco-runtime ReadyDeploy a test pod under the confidential runtime class:
cat > /tmp/cc-test.yaml <<'EOF'
apiVersion: v1
kind: Pod
metadata:
name: cc-test
spec:
runtimeClassName: kata-qemu-snp # use kata-qemu-tdx on TDX
containers:
- name: busybox
image: busybox:latest
command: ["sleep", "3600"]
restartPolicy: Never
EOF
kubectl apply -f /tmp/cc-test.yaml
kubectl wait --for=jsonpath='{.status.phase}'=Running pod/cc-test --timeout=300s
kubectl get pod cc-test -o wideA Running pod under the confidential runtime class confirms the guest booted inside the
TEE with the custom notary initrd.
On the GPU-TDX PodVM, also verify the in-guest notary — the pod must have been signed with
--allow-exec:
kubectl exec <pod> -c app -- wget -qO- http://127.0.0.1:8066/v1/isReady
# expect: {"status":"ready","state":"READY"}
kubectl exec <pod> -c app -- wget -qO- http://127.0.0.1:8066/v1/did_registration | head -c 200
# expect: {"version":"3", ...Operational notes (GPU-TDX)
- Tear down with
kubectl delete pod <pod> --grace-period=30, never--force, while the VM is alive. A force-delete leaks the host iommufd domain and the next pod cannot bind the GPU. - One H100 means one PodVM at a time.
- The debug drop-in changes the measured kernel cmdline (RTMR1), so debug boots are distinguishable from production by attestation. That is by design.