Skip to content

Allow measurements format output from attest-measure to be used directly - #74

Open
ameba23 wants to merge 2 commits into
mainfrom
peg/allow-attest-measurements-format
Open

Allow measurements format output from attest-measure to be used directly#74
ameba23 wants to merge 2 commits into
mainfrom
peg/allow-attest-measurements-format

Conversation

@ameba23

@ameba23 ameba23 commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

This changes the measurement policy JSON parser to accept measurements in the format output by the easy-tee/attest CLI.

The motivation is to make it easy to use the output from the attest measurement tool without needing to manually convert the JSON format.

For example the following JSON is accepted as a measurement policy:

{
  "kind": "portable",
  "azure": {
    "pcr4": "2bc9d1d583b628bdadfc5dcc918276fd2cfc953103540f7a80e463df97a3abc0",
    "pcr9": "7dc3b202c2dc30993354744188b3d8fda892360270548f43ce73dce507a060de",
    "pcr11": "7b609d7233463bbb35ac89f5faabc24769ccc185ecd5f6adb2cf5c4944dd59a7"
  },
  "dcap": {
    "uki_authenticode": "7336449f945aea776f2e5ed2e2552f88e1eed8467b1736523a436971cb83496277bb484a7cf6e986f5127d19e8ee187b",
    "kernel_authenticode": "b6c5133268aa8b440509f3d53ee855a5cd3aeb6441eb109a9f27f14c43bce3e2383856df4af876501ceeb4c9a3b15f0c",
    "cmdline_hash": "e03b89abf354a38976537b7a9138fd312e4cbf73b61eebc44086491701b1d167b9f6cb97a922325866c93e0834723d87",
    "initrd_hash": "5f2f98964c8ff86f79a17d53afc26f1cf8d03964f0309b474ec9bb1b99c5a180fbe54a636631ab2fab29d8d5b1be0bae",
    "gpt_disk_guid_hash": "488fa3f08aae01c1a46b497319e8a7d3b7335c9ff4f4d7fe6a3dd62c844b03de22157c0303be58f10e3152687778e68d"
  }
}

Similarly, several of these objects can be specified to represent multiple supported OS images:

[
  {
    "kind": "portable",
    ...
  },
  {
    "kind": "portable",
    ...
  }
]

@ameba23
ameba23 requested a review from alexhulbert July 28, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant