Commit 100393a
committed
fix: unify RA-TLS cert attestation format and fix onboard os_image_hash
Two changes:
1. ra-tls: use unified PHALA_RATLS_ATTESTATION OID for TDX certs instead
of the legacy separate TDX_QUOTE + EVENT_LOG OIDs. The new format
preserves vm_config (including os_image_hash). The reader already
prefers the new format and falls back to old OIDs for backward compat.
2. kms: when the remote source KMS uses the old cert format (missing
vm_config), the receiver-side onboard check fills os_image_hash from
the local KMS's own value. This is safe because mrAggregated already
validates OS image integrity through the RTMR measurement chain.
This workaround should be removed once all source KMS instances use
the new cert format.1 parent c241544 commit 100393a
File tree
3 files changed
+19
-22
lines changed- kms/src/main_service
- ra-tls/src
- tests/docs
3 files changed
+19
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
229 | 240 | | |
230 | 241 | | |
231 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
389 | 388 | | |
390 | 389 | | |
391 | 390 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
| 391 | + | |
| 392 | + | |
407 | 393 | | |
408 | 394 | | |
409 | 395 | | |
| |||
576 | 562 | | |
577 | 563 | | |
578 | 564 | | |
579 | | - | |
| 565 | + | |
580 | 566 | | |
581 | 567 | | |
582 | 568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments