Skip to content

Commit 3d7453c

Browse files
butler54claude
andauthored
fix(rvps): emit bare-metal SNP TCB reference values (#40)
* fix(rvps): emit bare-metal SNP TCB reference values The bare-metal SNP attestation policy (default_bm.rego) computes hardware := 2 only if all four reported TCB components match RVPS reference values: snp_bootloader, snp_microcode, snp_snp_svn, snp_tee_svn The RVPS builder only passed through snp_launch_measurement from the firmware-reference-values secret, so those four keys were never present in the rvps-reference-values ConfigMap. query_reference_value() returned NULL for snp_bootloader and the hardware rule fell through to the default (97, contraindicated), producing PolicyDeny even when the VCEK signature/endorsement verified successfully. Pass the four SNP TCB keys through from $firmwareData, mirroring the existing snp_launch_measurement handling. Keys are optional (guarded by if), so existing TDX/Azure deployments are unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix: stuff Signed-off-by: Chris Butler <chris.butler@redhat.com> --------- Signed-off-by: Chris Butler <chris.butler@redhat.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b90eba9 commit 3d7453c

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

‎Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ keywords:
66
- confidential-computing
77
- confidential-containers
88
name: trustee
9-
version: 0.10.1
9+
version: 0.10.2

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# trustee
22

3-
![Version: 0.10.1](https://img.shields.io/badge/Version-0.10.1-informational?style=flat-square)
3+
![Version: 0.10.2](https://img.shields.io/badge/Version-0.10.2-informational?style=flat-square)
44

55
A Helm chart to provide an opinionated deployment of Trustee in a validated pattern
66

‎templates/rvps-values-policies.yaml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,22 @@ spec:
8787
{{`{{- $e := dict "version" "0.1.0" "name" "snp_launch_measurement" "expiration" "2027-12-12T00:00:00Z" "value" $firmwareData.snp_launch_measurement -}}`}}
8888
{{`{{- $referenceValues = set $referenceValues "snp_launch_measurement" (toJson $e | base64enc | replace "+" "-" | replace "/" "_") -}}`}}
8989
{{`{{- end -}}`}}
90+
{{`{{- if $firmwareData.snp_bootloader -}}`}}
91+
{{`{{- $e := dict "version" "0.1.0" "name" "snp_bootloader" "expiration" "2027-12-12T00:00:00Z" "value" $firmwareData.snp_bootloader -}}`}}
92+
{{`{{- $referenceValues = set $referenceValues "snp_bootloader" (toJson $e | base64enc | replace "+" "-" | replace "/" "_") -}}`}}
93+
{{`{{- end -}}`}}
94+
{{`{{- if $firmwareData.snp_microcode -}}`}}
95+
{{`{{- $e := dict "version" "0.1.0" "name" "snp_microcode" "expiration" "2027-12-12T00:00:00Z" "value" $firmwareData.snp_microcode -}}`}}
96+
{{`{{- $referenceValues = set $referenceValues "snp_microcode" (toJson $e | base64enc | replace "+" "-" | replace "/" "_") -}}`}}
97+
{{`{{- end -}}`}}
98+
{{`{{- if $firmwareData.snp_snp_svn -}}`}}
99+
{{`{{- $e := dict "version" "0.1.0" "name" "snp_snp_svn" "expiration" "2027-12-12T00:00:00Z" "value" $firmwareData.snp_snp_svn -}}`}}
100+
{{`{{- $referenceValues = set $referenceValues "snp_snp_svn" (toJson $e | base64enc | replace "+" "-" | replace "/" "_") -}}`}}
101+
{{`{{- end -}}`}}
102+
{{`{{- if $firmwareData.snp_tee_svn -}}`}}
103+
{{`{{- $e := dict "version" "0.1.0" "name" "snp_tee_svn" "expiration" "2027-12-12T00:00:00Z" "value" $firmwareData.snp_tee_svn -}}`}}
104+
{{`{{- $referenceValues = set $referenceValues "snp_tee_svn" (toJson $e | base64enc | replace "+" "-" | replace "/" "_") -}}`}}
105+
{{`{{- end -}}`}}
90106
{{`{{- if $firmwareData.xfam -}}`}}
91107
{{`{{- $e := dict "version" "0.1.0" "name" "xfam" "expiration" "2027-12-12T00:00:00Z" "value" $firmwareData.xfam -}}`}}
92108
{{`{{- $referenceValues = set $referenceValues "xfam" (toJson $e | base64enc | replace "+" "-" | replace "/" "_") -}}`}}

0 commit comments

Comments
 (0)