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
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/cca-bootsync/_index.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,24 @@
1
1
---
2
-
title: Arm CCA Boot Sync
3
-
description: Learn how to use Arm CCA Boot Sync while launching Arm CCA Realms on an FVP with RME support.
2
+
title: Arm CCA BootSync
3
+
description: Learn how Arm CCA BootSync transfers boot-time configuration and secret data to a Realm while launching CCA Realms on an FVP with RME support.
4
4
5
5
draft: true
6
6
cascade:
7
7
draft: true
8
8
9
9
minutes_to_complete: 60
10
10
11
-
who_is_this_for: This Learning Path is for developers who want to understand how to use Arm CCA Bootsync.
11
+
who_is_this_for: This Learning Path is for developers who want to understand how Arm CCA BootSync supports early Realm boot workflows such as UEFI Secure Boot and encrypted disk boot.
12
12
13
13
learning_objectives:
14
-
- Gain an overview of Arm CCA Boot Sync and Boot Onjection Protocol.
15
-
- Understand how Arm CCA Boot Sync can be used for defining UEFI variables, enabling Secure Boot and share secure data with Arm CCA Realms.
16
-
- Lanch Arm CCA Realms with Secure Boot enabled and encrypted file system using an Armv9-A AEM Base Fixed Virtual Platform (FVP) with RME support.
14
+
- Explain why BootSync is needed before the Realm guest operating system has networking.
15
+
- Describe how the Boot Injection Protocol uses key exchange, attestation, and Boot Information Blocks to support the BootSync workflow.
16
+
- Use BootSync to inject UEFI variables and secret data into an Arm CCA Realm.
17
+
- Launch Arm CCA Realms with UEFI Secure Boot and an encrypted root file system on an Armv9-A AEM Base FVP with RME support.
17
18
18
19
prerequisites:
19
20
- An AArch64 or x86_64 computer running Linux or macOS. Cloud-based instances can also be used; see the [Arm cloud service providers](/learning-paths/servers-and-cloud-computing/csp/)
20
-
- Completion of the [Run an application in a Realm using the Arm Confidential Compute Architecture (CCA)](/learning-paths/servers-and-cloud-computing/cca-container) Learning Path
21
+
- Completion of the [Run an application in a Realm using the Arm Confidential Compute Architecture (CCA)](/learning-paths/servers-and-cloud-computing/cca-container/) Learning Path
title: "Overview of Arm CCA BootSync and Boot Injection protocol"
3
+
title: "Overview of Arm CCA BootSync and the Boot Injection Protocol"
4
4
5
5
weight: 2# 1 is first, 2 is second, etc.
6
6
@@ -10,12 +10,43 @@ layout: "learningpathall"
10
10
11
11
## Design overview
12
12
13
-
TO_DO: Explain Boot Injection protocol and Arm CCA Boot Sync wokflow.
13
+
Arm CCA BootSync is a boot-time synchronization mechanism for Arm CCA Realms. It lets Realm guest firmware obtain configuration and secret data before the guest operating system is running. This matters because early firmware does not have a network stack, but workflows such as UEFI Secure Boot and encrypted disk boot still need trusted inputs during that early boot window.
14
14
15
-
For more details see:
15
+
The reference implementation uses the *Boot Injection Protocol*, named the BIB protocol in the Boot Injection appendix of the Realm Host Interface (RHI) specification. In this Learning Path, you use BootSync to provide two kinds of data to a Realm:
-Appendix A (Boot Injection) in [the RHI specifications document](https://confluence.arm.com/display/FENIMORE/RHI+specification)
17
+
-Variable data, such as UEFI variables used to configure Secure Boot.
18
+
-Secret data, such as a disk unlock passphrase or other boot-time secret.
19
19
20
+
The data is not just copied into the Realm. BootSync first establishes a protected exchange between the Realm guest firmware and a *User Context* service controlled by the Realm initiator. The User Context service runs outside the Realm, but it represents the party that decides whether the Realm should receive the requested boot information.
20
21
21
-
In the next section, you will launch realms and see how Arm CCA BootSync can be used.
22
+
## Component roles
23
+
24
+
The BootSync flow spans both the Normal World host and the Realm World guest:
25
+
26
+
- The *Realm guest firmware* starts BootSync early in boot and requests boot information.
27
+
- The *Realm Management Monitor* (RMM) exposes Realm services and creates attestation reports for the Realm.
28
+
- The *Virtual Machine Manager* (VMM), `lkvm-bootsync` in this Learning Path, forwards Realm Host Interface calls between the Realm and host user space.
29
+
- The *User Context* service receives BootSync requests, verifies attestation evidence, and returns encrypted boot information when the Realm is allowed to receive it.
30
+
31
+
The practical result is that the Realm firmware can get boot-time data without needing direct networking. The host can carry the request, but the release decision belongs to the User Context after the Realm has provided attestation evidence.
32
+
33
+
## Boot Injection Protocol stages
34
+
35
+
The Boot Injection Protocol has three logical stages:
36
+
37
+
1. Key exchange establishes a secure session between the Realm guest firmware and the User Context service. The reference implementation uses ECDH over the P-384 curve, derives keys with HKDF-SHA512, and encrypts protocol data with AES-GCM.
38
+
2. Attestation lets the Realm guest firmware request an attestation report from the RMM. The binding key from the secure session is used as challenge data, so the User Context can bind the attestation evidence to this BootSync exchange.
39
+
3. Boot Information Blocks carry the requested boot data after attestation succeeds.
40
+
41
+
## What you will validate
42
+
43
+
The exercises intentionally show both failure and success cases:
44
+
45
+
- First, you launch a Realm without injection of any boot data. This demonstrates that the firmware can run successful attestation and ask for BootSync data.
46
+
- Next, you add the variable data file. BootSync completes, UEFI Secure Boot is enabled, and the unsigned kernel is rejected.
47
+
- Then, you sign the Realm kernel. The Realm boots with UEFI Secure Boot enabled, and the Secure Boot UEFI variable reports `1`.
48
+
- Finally, you encrypt the Realm root file system and use BootSync secret data to provide the unlock passphrase during boot.
49
+
50
+
For more detail, see the [ArmCcaBootSync README](https://gitlab.arm.com/linux-arm/edk2-cca/-/blob/cca/4441_measured_boot_v1/ArmVirtPkg/ArmCcaBootSync/Readme.md), the [Realm Management Monitor specification](https://developer.arm.com/documentation/den0137/latest/), and the [Realm Host Interface specification](https://developer.arm.com/documentation/den0148/latest/).
51
+
52
+
In the next section, you will launch Realms and see how Arm CCA BootSync can inject UEFI variables and secret data during early boot.
0 commit comments