Verify identities and policies locally

Learn to create a attestation for a workload and verify the UUID locally.

To perform an attestation verification flow for the given workload UUID and, upon successful verification , issues an authentication token. This token represents the result of the attestation process and can be used to grant access based on the verified state of the workload.

Prerequisites

To verify the identity named test-local , and the policy named test-local you need to create an attestation locally.

  1. Create a attestation.json file with the following content as vHSM-Nitride admin or user.

{
  "name": "Azure MariaDB",
  "description": "A small Azure VM running MariaDB",
  "namespace": "my-namespace",
  "events": "http://localhost:8000",
  "policy": "test-local"
}
  1. Create a attestation workload for the provider local-none-debug using: vhsm nitride attestation create @attestation.json .

The output is similar to:

  1. List the attestations that are available: vhsm nitride attestation list

  2. Verify the attestation for the workload that you created: vhsm nitride attestation -provider=local-none-debug report <uuid>

The output is similar to:

This output confirms that vHSM successfully interacted with the attestation service regarding the specified workload and received an authentication token with specific policies attached, indicating a successful attestation or a simulated attestation outcome. Next Steps:

You've successfully set up and tested attestation with the local-none-debug provider including identity, policy, workload, and report.Now, to attest a "buckypaper VM," you'll need to:

  1. Identify the appropriate real attestation provider for that VM such as "aws-sev-snp-raw", "azure-sev-snp-vtpm", or other supported providers.

  2. Create specific identities and policies for the buckypaper VM, aligning with its provider.

  3. Generate the actual attestation report from within the buckypaper VM.

  4. Submit and verify this report using the vHSM CLI tool with the correct provider.

Last updated

Was this helpful?