Skip to content

Add makefile command to get image hashes for portable measurement policies - #185

Open
ameba23 wants to merge 1 commit into
mainfrom
peg/measure-portable
Open

Add makefile command to get image hashes for portable measurement policies#185
ameba23 wants to merge 1 commit into
mainfrom
peg/measure-portable

Conversation

@ameba23

@ameba23 ameba23 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This makes it possible to compute 'portable' image hashes for an OS image via a new makefile command measure-portable.

This uses Easy-TEE/attest to compute these hashes, and adds the attest CLI to the nix development environment.

The computed hashes are written to a JSON file in the build/ directory, similar to the other measurement-generating makefile commands.

My motivation for adding this is that i want to document an easy way to create these hashes for the upcoming release of attested-tls-proxy which supports these 'portable' policies - currently only on GCP. See https://github.com/flashbots/attested-tls/tree/main/crates/attestation#portable-measurement-policies for details.

@ameba23
ameba23 requested review from a team as code owners July 28, 2026 08:10
@ameba23
ameba23 requested a review from alexhulbert July 28, 2026 08:10
@ameba23 ameba23 self-assigned this Jul 28, 2026
Comment thread flake.nix
"cc-eventlog-0.5.8" = "sha256-KEauakj53LrhKTc0yYp5SM8ec0cFNm4YVuHCJYiPQjw=";
};
};
cargoBuildFlags = ["-p" "attest-cli" "--no-default-features"];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No default features because we don't need the default verify feature which add extra dependencies.

@ameba23
ameba23 force-pushed the peg/measure-portable branch from 3c42e51 to c8c1480 Compare August 3, 2026 11:36
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