Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- `azure-cvm-sev-snp` platform accepted (`runtime.platform`): Azure confidential VMs run SEV-SNP behind a Hyper-V paravisor (vTPM-rooted). Added to the bundled schema enum and the TR-RTE valid-platform set so Azure TRACE records pass conformance. Matches `agentrust-trace>=0.4`.

## v0.2.0 — 2026-06-19

- DID subject support: `subject` now accepts `did:` URIs in addition to `spiffe://`.
Expand Down
2 changes: 1 addition & 1 deletion schemas/trace-claim.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"type": "object",
"required": ["platform", "measurement"],
"properties": {
"platform": {"type": "string", "enum": ["intel-tdx", "amd-sev-snp", "nvidia-h100", "nvidia-blackwell", "aws-nitro", "arm-cca", "google-confidential-space", "tpm2", "software-only"]},
"platform": {"type": "string", "enum": ["intel-tdx", "amd-sev-snp", "azure-cvm-sev-snp", "nvidia-h100", "nvidia-blackwell", "aws-nitro", "arm-cca", "google-confidential-space", "tpm2", "software-only"]},
"measurement": {"type": "string", "pattern": "^sha(256:[0-9a-f]{64}|384:[0-9a-f]{96})$"},
"rim_uri": {"type": "string", "format": "uri"},
"nonce": {"type": "string"},
Expand Down
2 changes: 2 additions & 0 deletions src/trace_tests/modules/tr_rte.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
_VALID_PLATFORMS = frozenset({
"intel-tdx",
"amd-sev-snp",
# Azure confidential VM: SEV-SNP behind a Hyper-V paravisor (vTPM-rooted).
"azure-cvm-sev-snp",
"nvidia-h100",
"nvidia-blackwell",
"aws-nitro",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_level0.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
SUBJECT_RE = re.compile(r"^(spiffe://|did:)")
DIGEST_RE = re.compile(r"^sha(256:[0-9a-f]{64}|384:[0-9a-f]{96})$")
VALID_PLATFORMS = {
"intel-tdx", "amd-sev-snp", "nvidia-h100", "nvidia-blackwell",
"intel-tdx", "amd-sev-snp", "azure-cvm-sev-snp", "nvidia-h100", "nvidia-blackwell",
"aws-nitro", "arm-cca", "google-confidential-space", "tpm2",
}
VALID_ENFORCEMENT = {"enforce", "advisory", "silent"}
Expand Down
7 changes: 7 additions & 0 deletions tests/unit/test_tr_rte.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ def test_valid_runtime_passes():
assert all(not f.failed() for f in findings), findings


def test_azure_cvm_platform_passes():
"""azure-cvm-sev-snp is a recognized hardware platform (vTPM-rooted SEV-SNP)."""
trace = {"runtime": {"platform": "azure-cvm-sev-snp", "measurement": "sha384:" + "a" * 96}}
findings = check(trace, level=2)
assert all(not f.failed() for f in findings), findings


def test_invalid_platform_fails():
trace = {"runtime": {**_VALID["runtime"], "platform": "unknown-tee"}}
codes = {f.code for f in check(trace) if f.failed()}
Expand Down