Skip to content

Commit 1831ce1

Browse files
authored
Merge pull request #2642 from anta5010/main
Add cca-kata (Run Confidentail Containers using Arm CCA and Trustee) Learning Path
2 parents 4e45a3e + 4041727 commit 1831ce1

File tree

7 files changed

+450
-0
lines changed

7 files changed

+450
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Run Confidentail Containers with encrypted images using Arm CCA and Trustee
3+
4+
draft: true
5+
cascade:
6+
draft: true
7+
8+
minutes_to_complete: 60
9+
10+
who_is_this_for: This Learning Path is for software developers who want to understand how Confidential Containers can be run in Arm CCA realm.
11+
12+
learning_objectives:
13+
- Overview of Confidential Containers
14+
- Understand how Trustee services are used for CCA realm attestation to unlock the confidential processing of data.
15+
- Use an encrypted image to deploy a Confidential Containers in a CCA realm on an Armv9-A AEM Base Fixed Virtual Platform (FVP) that has support for RME extensions.
16+
17+
prerequisites:
18+
- An AArch64 or x86_64 computer running Linux or macOS; you can use cloud instances - see the [Arm cloud service providers](/learning-paths/servers-and-cloud-computing/csp/)
19+
- Completion of the ["Run an end-to-end Attestation with Arm CCA and Trustee"](https://learn.arm.com/learning-paths/servers-and-cloud-computing/cca-trustee) Learning Path
20+
21+
author:
22+
- Anton Antonov
23+
24+
### Tags
25+
skilllevels: Advanced
26+
subjects: Performance and Architecture
27+
armips:
28+
- Neoverse
29+
- Cortex-A
30+
operatingsystems:
31+
- Linux
32+
- macOS
33+
tools_software_languages:
34+
- FVP
35+
- RME
36+
- CCA
37+
- Docker
38+
- Veraison
39+
- Trustee
40+
- Confidential containers
41+
- Kata containers
42+
43+
further_reading:
44+
- resource:
45+
title: Arm Confidential Compute Architecture
46+
link: https://www.arm.com/architecture/security-features/arm-confidential-compute-architecture
47+
type: website
48+
- resource:
49+
title: Arm Confidential Compute Architecture open-source enablement
50+
link: https://www.youtube.com/watch?v=JXrNkYysuXw
51+
type: video
52+
- resource:
53+
title: Learn the architecture - Realm Management Extension
54+
link: https://developer.arm.com/documentation/den0126
55+
type: documentation
56+
- resource:
57+
title: Realm Management Monitor specification
58+
link: https://developer.arm.com/documentation/den0137/latest/
59+
type: documentation
60+
61+
### FIXED, DO NOT MODIFY
62+
# ================================================================================
63+
weight: 1 # _index.md always has weight of 1 to order correctly
64+
layout: "learningpathall" # All files under learning paths have this same wrapper
65+
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
66+
---
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# ================================================================================
3+
# FIXED, DO NOT MODIFY THIS FILE
4+
# ================================================================================
5+
weight: 21 # Set to always be larger than the content in this path to be at the end of the navigation.
6+
title: "Next Steps" # Always the same, html page title.
7+
layout: "learningpathall" # All files under learning paths have this same wrapper for Hugo processing.
8+
---
49.2 KB
Loading
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
# User change
3+
title: "Overview of Confidential Containers and Arm CCA Attestation with Trustee"
4+
5+
weight: 2 # 1 is first, 2 is second, etc.
6+
7+
# Do not modify these elements
8+
layout: "learningpathall"
9+
---
10+
11+
12+
## Confidentail Containers
13+
14+
["Confidential Containers"](https://github.com/confidential-containers/confidential-containers) is an open source community
15+
working to enable cloud native confidential computing by leveraging Trusted Execution Environments to protect containers and data.
16+
17+
## Design overview
18+
19+
Confidential computing projects are largely defined by what is inside the enclave and what is not.
20+
For Confidential Containers, the enclave contains the workload pod and helper processes and daemons that facilitate the workload pod.
21+
Everything else, including the hypervisor, other pods, and the control plane, is outside of the enclave and untrusted.
22+
23+
### Kata Containers
24+
25+
Confidential Containers and ["Kata Containers"](https://github.com/kata-containers/kata-containers) are closely linked,
26+
but the relationship might not be obvious at first. Kata Containers is an existing open source project that encapsulates pods inside of VMs and
27+
VMs can be run in TEEs. In this Learning Path the guest VM will be run in an ARM CCA realm and you will be able to confirm it by checking kernel messages.
28+
29+
Given the pod-centric design of Confidential Containers this is a perfect match. But if Kata runs pods inside of VM,
30+
why do we need the Confidential Containers project at all? There are crucial changes needed on top of Kata Containers to preserve confidentiality.
31+
32+
### Image Pulling
33+
34+
When using Kata Containers container images are pulled on the worker node with the help of a CRI runtime like **containerd**.
35+
The images are exposed to the guest via filesystem passthrough. This is not suitable for confidential workloads
36+
because the container images are exposed to the untrusted host. With Confidential Containers images are pulled and unpacked inside of the guest.
37+
This requires additional components such as **image-rs** to be part of the guest rootfs. These components are beyond the scope of
38+
traditional Kata deployments and live in the Confidential Containers ["guest components"](https://github.com/confidential-containers/guest-components) repository.
39+
40+
On the host, a **nydus snapshotter** is used to pre-empt image pull and divert control flow to **image-rs** inside the guest.
41+
This is a simplified diagram showing the interaction of **containerd**, the **nydus snapshotter**, and **image-rs**.
42+
![Image pulling alt-text#center](image_pulling.png "Image pulling")
43+
44+
### Attestation
45+
46+
Confidential Containers also provides components inside the guest and elsewhere to facilitate attestation.
47+
Attestation is a crucial part of confidential computing and a direct requirement of many guest operations.
48+
For example, to unpack an encrypted container image, the guest must retrieve a secret key.
49+
Inside the guest the **confidential-data-hub** and **attestation-agent** handle operations involving secrets and attestation.
50+
Again, these components are beyond the scope of traditional Kata deployments and are located in the ["guest components"](https://github.com/confidential-containers/guest-components) repository.
51+
52+
The CDH and AA use the KBS Protocol to communicate with an external, trusted entity.
53+
Confidential Containers provides [Trustee](https://github.com/confidential-containers/trustee) as an attestation service and key management engine that validates the guest TCB and releases secret resources.
54+
55+
This is a simplified diagram of the attestation process
56+
![Attestation alt-text#center](attestation.png "Attestation")
57+
58+
In this Learnig Path the attestation process will be used to obtain an encryption key required to decrypt a container image.
59+
Learn more about how Trustee services are used to evaluate the trustworthiness of a CCA realm and how attestation policy gates secrets release in
60+
["Run an end-to-end Attestation with Arm CCA and Trustee"](https://learn.arm.com/learning-paths/servers-and-cloud-computing/cca-trustee)
61+
62+
### Full diagram
63+
64+
If we take Kata Containers and add guest image pulling and attestation, we arrive at the following diagram, which represents Confidential Containers.
65+
![Confidentail Containers alt-text#center](confidential_containers.png "Confidential Containers")
66+
67+
68+
For convenience, Trustee services and the Confidential Containers software are packaged in Docker containers,
69+
which you can run on any suitable AArch64 or x86_64 development host.
70+
Because the client runs in a realm, it uses the Fixed Virtual Platform (FVP) and the reference software stack for Arm CCA.
71+
72+
Proceed to the next section to run a confidential container using the components and architecture described here.
49.6 KB
Loading

0 commit comments

Comments
 (0)