Skip to content

feat: vet ami-reference records golden boot-PCR tags (provabl#13) - #24

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/ami-reference
Jun 11, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/ami-reference

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Closes the runtime-binding gap: vet ami-reference <ami> --pcr idx=hex records a vetted AMI's known-good boot measurements as attest:pcr<N> tags. The kernel appraisers already check expected_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/.tpm attestation output (runbook in README). The attest:pcr* tags are locked to the vetter by ground's lockdown SCP (provabl/ground#21).

  • internal/amitag: TagPCRPrefix; reuses the existing EC2 TagImage.
  • 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).
  • README: reference-capture runbook + trust boundary.

Verified live: ami-reference wrote attest:pcr0/attest:pcr7 to a real AMI (confirmed via describe-images); torn down.

Refs: #13

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
@scttfrdmn
scttfrdmn merged commit ed04a77 into main Jun 11, 2026
1 check passed
@scttfrdmn
scttfrdmn deleted the feat/ami-reference branch June 11, 2026 21:31
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