Commit 5844a0f
authored
feat: add firmware reference values ESO and RVPS integration (#27)
Enable bare metal attestation policy enforcement using firmware measurements
(Intel TDX / AMD SEV-SNP) collected via veritas and stored in Vault.
**New template:**
- templates/firmware-refvals-eso.yaml: ExternalSecret (gated on kbs.baremetal.enabled)
Pulls from secret/data/hub/firmwareReferenceValues into firmware-reference-values
secret in trustee-operator-system namespace
**Modified template:**
- templates/rvps-values-policies.yaml: Add firmware reference value block
Reads firmware-reference-values secret and appends to RVPS ConfigMap:
- mr_td: TDX initial TD measurement (SHA-384)
- rtmr_1: TDX firmware + bootloader (SHA-384)
- rtmr_2: TDX kernel + initrd (SHA-384)
- snp_launch_measurement: SNP initial memory measurement (SHA-384)
- xfam: TDX extended feature mask (hex)
Each value is an array (supports multi-version via merged values)
Conditionally appends only if key exists in secret
**New value:**
- kbs.baremetal.enabled: false (default off, enabled per-profile)
Controls firmware ESO creation and enables bare metal-specific features
**Integration:**
- Firmware values pushed to Vault via coco-pattern scripts/collect-firmware-refvals.sh
- ESO syncs from Vault to firmware-reference-values secret (sync-wave 1)
- RVPS policy reads secret and builds ConfigMap (sync-wave 6)
- Attestation policy (PR 2C) will enforce firmware checks using RVPS values
**Backwards compatible:**
- ESO only created when kbs.baremetal.enabled=true
- RVPS block conditionally appends if secret exists
- No functional change when disabled
Part of Wave 2 (firmware hardening) from bare metal attestation plan.
This is PR 2B - requires PR 2A (coco-pattern workflow) for value collection.1 parent 498777c commit 5844a0f
3 files changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
47 | 71 | | |
48 | 72 | | |
49 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
| |||
0 commit comments