Skip to content

Add dynamic measurement policies - #76

Open
ameba23 wants to merge 5 commits into
peg/attestation-verifier-builderfrom
peg/dynamic-measurement-policies
Open

Add dynamic measurement policies#76
ameba23 wants to merge 5 commits into
peg/attestation-verifier-builderfrom
peg/dynamic-measurement-policies

Conversation

@ameba23

@ameba23 ameba23 commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Problem: On Buildernet portable measurement policies are not possible because measurements are checked by Builderhub and can change at runtime as new Buildernet OS images are released.

This makes it possible to dynamically change accepted measurement policies for the attestation verifier at runtime by putting them behind a mutex.

AttestationVerifier now has an option which can be set during construction via the builder API, adding a resource to re-fetch a measurement policy. This is a string which can be either a URL fetched by http(s) or a file path.

If this option is present, on getting a measurement mismatch during attestation verification the resource is re-fetched to get the latest version of the policy, and the measurements are checked against the new policy.

This option is not allowed with the included attested-tls crate, because the trusted certificate cache would allow old policies to still be accepted. A possible followup could clear the cache whenever the policy is updated by checking policy generation numbers.

Closes #15

@ameba23
ameba23 force-pushed the peg/dynamic-measurement-policies branch from 1af3613 to 4da74a6 Compare August 4, 2026 09:15
@ameba23
ameba23 force-pushed the peg/dynamic-measurement-policies branch from f5f54fb to c95700a Compare August 13, 2026 06:49
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.

Make it possible to change the MeasurementPolicy used by an AttestationVerifier

1 participant