AttestedVerifier should return matched ExpectedMeasurements on successful verification - #79
Open
ameba23 wants to merge 2 commits into
Open
Conversation
ameba23
force-pushed
the
peg/verifier-returns-expected-measurements
branch
from
August 13, 2026 06:49
83fcdf8 to
2eb731a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is needed for Buildernet in order to be able to put the matched portable image hashes in HTTP headers.
Rather than returning the actual observed measurements on successful attestation verification, we return which of our measurement policies was successfully matched. This means in the case of image hashes, they are returned.
This also adds helpers for converting
ExpectedMeasurementsto and from JSON header values.