You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: add integration tests with real firmware and UKI fixtures
Bring test coverage from 61% to 92% by adding integration tests
that exercise MRTD computation, PE/COFF parsing, full register
computation, and CLI commands against real OVMF and UKI binaries.
Compute expected Intel TDX register values (MRTD + RTMR[0-3]) from published inputs, entirely offline.
10
-
11
-
`cvm-measure` is the TDX equivalent of [sev-snp-measure](https://github.com/virtee/sev-snp-measure) for AMD SEV-SNP. It takes firmware, UKI, baseline, and RAM topology as inputs and produces the hex register values that a correctly-launched CVM should report.
9
+
Compute expected confidential VM register values from published inputs, entirely offline. `cvm-measure` takes firmware, UKI, baseline, and RAM topology as inputs and produces the hex register values that a correctly-launched CVM should report, letting you verify attestation without booting a VM.
12
10
13
11
**Zero dependencies.** Python 3.10+ standard library only.
Add `--output-format json` for machine-readable output, useful for CI pipelines and scripting:
58
+
59
+
```bash
60
+
cvm-measure tdx \
61
+
--firmware OVMF.fd \
62
+
--uki BOOTX64.EFI \
63
+
--baseline baseline.json \
64
+
--ram 234 \
65
+
--output-format json
66
+
```
67
+
68
+
Output:
69
+
70
+
```json
71
+
{
72
+
"mrtd": "3a7b2c...",
73
+
"rtmr0": "8f4e1d...",
74
+
"rtmr1": "c2a9b7...",
75
+
"rtmr2": "5e8f3a...",
76
+
"rtmr3": "000000..."
77
+
}
78
+
```
79
+
51
80
### Multi-NUMA topology
52
81
53
82
```bash
@@ -129,7 +158,7 @@ A baseline file contains SHA-384 digests for events that **cannot be computed of
129
158
-**Boot variables**: BootOrder, Boot0000-Boot0003
130
159
-**GPT**: Disk partition table hash
131
160
132
-
Baselines are **not shipped with this tool**. They are data artifacts published alongside each CVM image release by the operator.
161
+
Baselines are **not shipped with this tool**. Cohere publishes baselines in the [cohere-cc-baselines](https://github.com/cohere-ai/cohere-cc-baselines) repository, organized by provider, platform, and machine type.
0 commit comments