Skip to content

Commit 73ebebc

Browse files
gurvinderclaude
authored andcommitted
fix(trustee): capture full SNP VCEK chip_id instead of truncating to 64 hex
collect-snp-vcek-urls.sh extracted the hardware ID with `grep -oP '[0-9a-fA-F]{64}'`, truncating the chip_id to the first 32 bytes. The SNP verifier derives the on-disk VCEK directory from the full hex(chip_id) — 128-hex for non-Turin EPYC, 16-hex for Turin — so a truncated value can never match and attestation fails with POST /kbs/v0/attest returning 401, leaving workloads in CreateContainerError. Extract the full chip_id as the KDS URL's trailing path segment (query stripped) without truncating. Refs validatedpatterns/trustee-chart#45. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9800bf1 commit 73ebebc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎scripts/collect-snp-vcek-urls.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ for NODE in ${NODES}; do
3333
continue
3434
fi
3535

36-
HWID=$(echo "${URL}" | grep -oP '[0-9a-fA-F]{64}' | tr '[:upper:]' '[:lower:]' | head -1)
36+
HWID=$(echo "${URL%%\?*}" | sed 's#.*/##' | tr '[:upper:]' '[:lower:]')
3737

38-
if [ -z "${HWID}" ]; then
39-
echo " ERROR: could not extract hardware ID from URL: ${URL}"
38+
if ! echo "${HWID}" | grep -qE '^[0-9a-f]+$'; then
39+
echo " ERROR: could not extract hardware ID (chip_id) from URL: ${URL}"
4040
continue
4141
fi
4242

0 commit comments

Comments
 (0)