Create or update identities
Identities in this system are versioned by their creation timestamp. For verification purposes, the most recently created identity for a given name is always used. This design allows you to easily update an identity when it becomes outdated without needing to change your policy or the attestation configuration itself.
Prerequisites
Install vHSM CLI.
Log in as root user to use the vHSM CLI tool, else use the root token for vHSM instance to use curl.
Create a new identity named test
of the type firmware
:
vhsm write auth/ratls/identities - <<'EOF'
{
"type": "firmware",
"name": "test-local",
"values": {
"measurement": "eb5c02d3ba319e65218994fc47925cf8a5e9a433081c44d4d989434f15a7c6d715d302401b3147da04e49abc99e50aea"
}
}
EOF
The output is similar to:
Key Value
--- -----
created 1749465559
name test-local
type firmware
values map[measurement:eb5c02d3ba319e65218994fc47925cf8a5e9a433081c44d4d989434f15a7c6d715d302401b3147da04e49abc99e50aea]
Possible Error Response:
If there is an. issue with the request body, such as unknown identity type, you might receive an error:
{
"errors": [
"failed parsing: unknown type"
]
}
Description of values
field content by Identity type:
The content you put in the values
field within the request body depends on the type
of the identity you are creating or updating.
platform
It would typically contain platform-specific attestation data.
firmware
workload
Used for workload-level identities.
- hash
: A human-readable name of the hash function used (e.g., "sha256").
- pcrs
: A dictionary mapping integer PCR (Platform Configuration Register) indices to their encoded PCR values (strings).
metadata
More details about the identity.
Last updated
Was this helpful?