Commit a11ddbf
committed
fix: unify RA-TLS cert attestation format and fix onboard os_image_hash
1. ra-tls: use unified PHALA_RATLS_ATTESTATION OID for all cert types
(including TDX) 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 OID and falls back to old OIDs
for backward compat with existing certs.
2. kms: when the remote source KMS uses the old cert format (missing
vm_config), the receiver-side ensure_kms_allowed fills os_image_hash
from the local KMS value. This is safe because mrAggregated already
validates OS image integrity through the RTMR measurement chain.
TODO: remove once all source KMS instances use the new cert format.1 parent de92515 commit a11ddbf
2 files changed
Lines changed: 16 additions & 19 deletions
| 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 | | |
| |||
0 commit comments