This tutorial is aimed at creating attestation for confidential VMs.
Create a template
The first step will be to create a template for VM. You can refer to the "Create a Buckypaper VMs template" tutorial for a better understanding of how to do this.
Create a namespace
The second step will be to create a namespace. This is a mandatory requirement for creating attestation. You can learn how to create and use namespaces in the documentation.
At this stage, we will create an Azure VM from the DC2as_v5 family with the Ubuntu 20_04-lts-cvm operating system version, as it supports confidential VMs.
When creating the VM, you should also include cloud-init. The configuration for cloud-init is shown below.
ENV
Description
Value
ENCLAIVE_PROTOCOL
sev-snp
ENCLAIVE_SOURCE
The provider name that we specified during the measurement creation.
azure
ENCLAIVE_INSTANCE
The "instance" field that we obtained during the attestation creation.
Once all the steps have been completed, the result of the attestation will be sent to the webhook you specified when creating the attestation. Below is an example of what is sent to the webhook. Ensure that the webhook accepts the HTTP POST method.
Once all the steps have been completed, the result of the attestation will be sent to the webhook you specified when creating the attestation. Below is an example of what is sent to the webhook. Ensure that the webhook accepts the HTTP POST method.