Repository navigation
feat: vet ami-reference records golden boot-PCR tags (provabl#13) - #24
Merged
Merged
Conversation
Binds a running instance to a vetted AMI: vet ami-reference <ami> --pcr idx=hex records the AMI's known-good boot measurements as attest:pcr<N> tags. The kernel appraisers already check expected_pcr<N>; this is the missing golden-reference half. NitroTPM/enclave PCRs can't be computed offline, so values come from a trusted reference boot's .nitro/.tpm attestation output (runbook in README). - internal/amitag: TagPCRPrefix; reuses the existing EC2 TagImage. - cmd/vet ami-reference: --pcr idx=hex (repeatable) + --region; index (0-23) and hex validated; written via the vetter principal. Unit-tested (valid + 6 rejections). - README: reference-capture runbook + trust boundary. The attest:pcr* tags are locked to the vetter by ground's lockdown SCP (provabl/ground#21). Verified live: ami-reference wrote attest:pcr0/pcr7 to a real AMI. Refs: #13
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.
Closes the runtime-binding gap:
vet ami-reference <ami> --pcr idx=hexrecords a vetted AMI's known-good boot measurements asattest:pcr<N>tags. The kernel appraisers already checkexpected_pcr<N>; this supplies the golden reference.NitroTPM/enclave PCRs can't be computed offline from an AMI, so the values come from a trusted reference boot's
.nitro/.tpmattestation output (runbook in README). Theattest:pcr*tags are locked to the vetter by ground's lockdown SCP (provabl/ground#21).internal/amitag:TagPCRPrefix; reuses the existing EC2TagImage.cmd/vet ami-reference:--pcr idx=hex(repeatable) +--region; index (0–23) + hex validated; written via the vetter principal. Unit-tested (valid + 6 rejection cases).Verified live:
ami-referencewroteattest:pcr0/attest:pcr7to a real AMI (confirmed via describe-images); torn down.Refs: #13