-
Notifications
You must be signed in to change notification settings - Fork 248
Add cca-kata (Run Confidentail Containers using Arm CCA and Trustee) Learning Path #2642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
content/learning-paths/servers-and-cloud-computing/cca-kata/_index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| --- | ||
| title: Run Confidentail Containers with encrypted images using Arm CCA and Trustee | ||
|
|
||
| draft: true | ||
| cascade: | ||
| draft: true | ||
|
|
||
| minutes_to_complete: 60 | ||
|
|
||
| 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. | ||
|
|
||
| learning_objectives: | ||
| - Overview of Confidential Containers | ||
| - Understand how Trustee services are used for CCA realm attestation to unlock the confidential processing of data. | ||
anta5010 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - 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. | ||
anta5010 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| prerequisites: | ||
| - 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/) | ||
| - 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 | ||
|
|
||
| author: | ||
| - Anton Antonov | ||
|
|
||
| ### Tags | ||
| skilllevels: Advanced | ||
| subjects: Performance and Architecture | ||
| armips: | ||
| - Neoverse | ||
| - Cortex-A | ||
| operatingsystems: | ||
| - Linux | ||
| - macOS | ||
| tools_software_languages: | ||
| - FVP | ||
| - RME | ||
| - CCA | ||
| - Docker | ||
| - Veraison | ||
| - Trustee | ||
| - Confidential containers | ||
| - Kata containers | ||
|
|
||
| further_reading: | ||
| - resource: | ||
| title: Arm Confidential Compute Architecture | ||
| link: https://www.arm.com/architecture/security-features/arm-confidential-compute-architecture | ||
| type: website | ||
| - resource: | ||
| title: Arm Confidential Compute Architecture open-source enablement | ||
| link: https://www.youtube.com/watch?v=JXrNkYysuXw | ||
| type: video | ||
| - resource: | ||
| title: Learn the architecture - Realm Management Extension | ||
| link: https://developer.arm.com/documentation/den0126 | ||
| type: documentation | ||
| - resource: | ||
| title: Realm Management Monitor specification | ||
| link: https://developer.arm.com/documentation/den0137/latest/ | ||
| type: documentation | ||
|
|
||
| ### FIXED, DO NOT MODIFY | ||
| # ================================================================================ | ||
| weight: 1 # _index.md always has weight of 1 to order correctly | ||
| layout: "learningpathall" # All files under learning paths have this same wrapper | ||
| learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content. | ||
| --- | ||
8 changes: 8 additions & 0 deletions
8
content/learning-paths/servers-and-cloud-computing/cca-kata/_next-steps.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| # ================================================================================ | ||
| # FIXED, DO NOT MODIFY THIS FILE | ||
| # ================================================================================ | ||
| weight: 21 # Set to always be larger than the content in this path to be at the end of the navigation. | ||
| title: "Next Steps" # Always the same, html page title. | ||
| layout: "learningpathall" # All files under learning paths have this same wrapper for Hugo processing. | ||
| --- |
Binary file added
BIN
+49.2 KB
content/learning-paths/servers-and-cloud-computing/cca-kata/attestation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions
72
content/learning-paths/servers-and-cloud-computing/cca-kata/cca-kata.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| --- | ||
| # User change | ||
| title: "Overview of Confidential Containers and Arm CCA Attestation with Trustee" | ||
|
|
||
| weight: 2 # 1 is first, 2 is second, etc. | ||
|
|
||
| # Do not modify these elements | ||
| layout: "learningpathall" | ||
| --- | ||
|
|
||
|
|
||
| ## Confidentail Containers | ||
anta5010 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ["Confidential Containers"](https://github.com/confidential-containers/confidential-containers) is an open source community | ||
| working to enable cloud native confidential computing by leveraging Trusted Execution Environments to protect containers and data. | ||
|
|
||
| ## Design overview | ||
|
|
||
| Confidential computing projects are largely defined by what is inside the enclave and what is not. | ||
anta5010 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| For Confidential Containers, the enclave contains the workload pod and helper processes and daemons that facilitate the workload pod. | ||
| Everything else, including the hypervisor, other pods, and the control plane, is outside of the enclave and untrusted. | ||
|
|
||
| ### Kata Containers | ||
|
|
||
| Confidential Containers and ["Kata Containers"](https://github.com/kata-containers/kata-containers) are closely linked, | ||
| but the relationship might not be obvious at first. Kata Containers is an existing open source project that encapsulates pods inside of VMs and | ||
| 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. | ||
|
|
||
| Given the pod-centric design of Confidential Containers this is a perfect match. But if Kata runs pods inside of VM, | ||
| why do we need the Confidential Containers project at all? There are crucial changes needed on top of Kata Containers to preserve confidentiality. | ||
|
|
||
| ### Image Pulling | ||
|
|
||
| When using Kata Containers container images are pulled on the worker node with the help of a CRI runtime like **containerd**. | ||
| The images are exposed to the guest via filesystem passthrough. This is not suitable for confidential workloads | ||
| because the container images are exposed to the untrusted host. With Confidential Containers images are pulled and unpacked inside of the guest. | ||
| This requires additional components such as **image-rs** to be part of the guest rootfs. These components are beyond the scope of | ||
| traditional Kata deployments and live in the Confidential Containers ["guest components"](https://github.com/confidential-containers/guest-components) repository. | ||
|
|
||
| On the host, a **nydus snapshotter** is used to pre-empt image pull and divert control flow to **image-rs** inside the guest. | ||
| This is a simplified diagram showing the interaction of **containerd**, the **nydus snapshotter**, and **image-rs**. | ||
|  | ||
|
|
||
| ### Attestation | ||
|
|
||
| Confidential Containers also provides components inside the guest and elsewhere to facilitate attestation. | ||
| Attestation is a crucial part of confidential computing and a direct requirement of many guest operations. | ||
| For example, to unpack an encrypted container image, the guest must retrieve a secret key. | ||
| Inside the guest the **confidential-data-hub** and **attestation-agent** handle operations involving secrets and attestation. | ||
anta5010 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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. | ||
|
|
||
| The CDH and AA use the KBS Protocol to communicate with an external, trusted entity. | ||
| 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. | ||
|
|
||
| This is a simplified diagram of the attestation process | ||
|  | ||
|
|
||
| In this Learnig Path the attestation process will be used to obtain an encryption key required to decrypt a container image. | ||
anta5010 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Learn more about how Trustee services are used to evaluate the trustworthiness of a CCA realm and how attestation policy gates secrets release in | ||
| ["Run an end-to-end Attestation with Arm CCA and Trustee"](https://learn.arm.com/learning-paths/servers-and-cloud-computing/cca-trustee) | ||
|
|
||
| ### Full diagram | ||
|
|
||
| If we take Kata Containers and add guest image pulling and attestation, we arrive at the following diagram, which represents Confidential Containers. | ||
|  | ||
|
|
||
|
|
||
| For convenience, Trustee services and the Confidential Containers software are packaged in Docker containers, | ||
| which you can run on any suitable AArch64 or x86_64 development host. | ||
| Because the client runs in a realm, it uses the Fixed Virtual Platform (FVP) and the reference software stack for Arm CCA. | ||
|
|
||
| Proceed to the next section to run a confidential container using the components and architecture described here. | ||
Binary file added
BIN
+49.6 KB
...learning-paths/servers-and-cloud-computing/cca-kata/confidential_containers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.