> For the complete documentation index, see [llms.txt](https://docs.enclaive.cloud/nitride/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enclaive.cloud/nitride/tutorials/attestation-blueprint/create-annotations.md). Agents can also search and read this documentation through its [MCP server](https://docs.enclaive.cloud/nitride/~gitbook/mcp).

# Create Annotations

[Annotations](https://docs.enclaive.cloud/nitride/documentation/concepts/attestation.md) make attestation reports human-friendly.<br>

### Set vHSM environment variables

{% hint style="info" %}
**Note**: If the vHSM Nitride plugin is enabled in a specific namespace, be sure to include the appropriate namespace in the `X-Vault-Namespace` header when making `curl` requests.
{% endhint %}

**Example**

<pre class="language-bash"><code class="lang-bash">export VAULT_ADDR=https://vhsm.enclaive.cloud/
<strong>export VAULT_TOKEN=$(cat ~/.vault-token)/
</strong>export VAULT_NAMESPACE="test/"
</code></pre>

### Create individual annotations&#x20;

After verifying an attestation, you may have multiple abstract values—such as PCRs or measurements—that are not directly human-readable.\
Annotations let you map each of these values to a clear description.

For example:

> `PCR8 / Kernel Command Line / Enclaive Buckypaper v1.0.0 / 2025-06-20`

> **Note:** Firmware versions are already human-readable and typically do not need annotations.

#### Key naming caveat

Due to how the storage interface works for plugins, keys containing slashes (`/`) are interpreted as file system paths.\
For example, a key named `milan/pcrs/0` will appear in a listing as `milan/`. However, you must still use the full key (`milan/pcrs/0`) when retrieving it.

**Example : PCR 0 value**

{% tabs %}
{% tab title="vHSM CLI" %}

1. Create a file named `values.json`  with these content:

```
{
  "key": "8aFCxTWG5+IiPsdOX00aSUKVax/ZrHj6/N+FEXqjRdo=",
  "value": "Kernel Command Line / Enclaive Buckypaper v1.0.0 / 2025-06-20"
}
```

2. Now use this command to create the annotation:

```
vhsm nitride annotation create @values.json
```

{% endtab %}

{% tab title="cURL" %}

```
curl -X PUT "$VAULT_ADDR/v1/auth/ratls/annotations" \
  -H "X-Vault-Token: $VAULT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "X-Vault-Namespace: $VAULT_NAMESPACE" \
  -d '{
    "key": "8aFCxTWG5+IiPsdOX00aSUKVax/ZrHj6/N+FEXqjRdo=",
    "value": "Kernel Command Line / Enclaive Buckypaper v1.0.0 / 2025-06-20"
  }'
```

{% endtab %}
{% endtabs %}

#### Output

{% tabs %}
{% tab title="vHSM CLI" %}

```
Key        Value
---        -----
created    1755497783
key        8aFCxTWG5+IiPsdOX00aSUKVax/ZrHj6/N+FEXqjRdo=
value      Kernel Command Line / Enclaive Buckypaper v1.0.0 / 2025-06-20
```

{% endtab %}

{% tab title="cURL" %}

```
{
  "request_id": "3ed99957-41ae-7b84-89a0-c82fce9e7cca",
  "lease_id": "",
  "renewable": false,
  "lease_duration": 0,
  "data": {
    "created": 1755255339,
    "key": "8aFCxTWG5+IiPsdOX00aSUKVax/ZrHj6/N+FEXqjRdo=",
    "value": "Kernel Command Line / Enclaive Buckypaper v1.0.0 / 2025-06-20"
  },
  "wrap_info": null,
  "warnings": null,
  "auth": null
}
```

{% endtab %}
{% endtabs %}

### List all annotations

To verify which annotations exist:

{% tabs %}
{% tab title="vHSM CLI" %}

```
 vhsm nitride annotation list
```

{% endtab %}

{% tab title="cURL" %}

```
curl -X GET "$VAULT_ADDR/v1/auth/ratls/annotations/?list=true" \
  -H "X-Vault-Token: $VAULT_TOKEN" \
  -H "X-Vault-Namespace: $VAULT_NAMESPACE"
```

{% endtab %}
{% endtabs %}

#### Output

{% tabs %}
{% tab title="vHSM CLI" %}

```
Keys
----
8aFCxTWG5+IiPsdOX00aSUKVax/
```

{% endtab %}

{% tab title="cURL" %}

```
{
  "request_id": "572b3a54-0911-7d64-1b56-9789a04f185b",
  "lease_id": "",
  "renewable": false,
  "lease_duration": 0,
  "data": {
    "keys": [
      "8aFCxTWG5+IiPsdOX00aSUKVax/"
    ]
  },
  "wrap_info": null,
  "warnings": null,
  "auth": null
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}

### Note:

Keys with slashes (`/`) are treated as file system paths by the storage interface for plugins. For instance, a key named `a/b`will be listed as `a/`, but you must use the complete key (`a/b`) when retrieving it.
{% endhint %}

### Delete an annotation (optional)

To delete an annotation:

{% tabs %}
{% tab title="vHSM CLI" %}

```
vhsm nitride annotation delete <key>
```

{% endtab %}

{% tab title="cURL" %}

```
curl -X DELETE "$VAULT_ADDR/v1/auth/ratls/annotations/<key>" \
  -H "X-Vault-Token: $VAULT_TOKEN" \
  -H "X-Vault-Namespace: $VAULT_NAMESPACE"
```

{% endtab %}
{% endtabs %}

Replace `<key>` with the actual annotation key  for example `8aFCxTWG5+IiPsdOX00aSUKVax/ZrHj6/N+FEXqjRdo=`

#### Output

{% tabs %}
{% tab title="vHSM CLI" %}

```
Success! Data deleted (if it existed) at: auth/ratls/annotations/<key>
```

{% endtab %}

{% tab title="cURL" %}
No output message appears. You will need to list the annotations to see if it is deleted.
{% endtab %}
{% endtabs %}
