Repository navigation
Commit 3d7453c
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
90 | 106 | | |
91 | 107 | | |
92 | 108 | | |
| |||
0 commit comments