Skip to content

feat: tpm attest --expected-from-ami auto-loads golden PCRs (provabl#13) - #3

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

scttfrdmn merged 1 commit into
mainfrom
feat/expected-from-ami

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

The NitroTPM counterpart to nitro's --expected-from-ami (provabl/nitro#9). On the live instance, reads the source AMI id from IMDS (ami-id) and pulls its attest:pcr<N> golden tags (written by vet ami-reference) via ec2:DescribeImages, feeding them to the expected_pcr<N> appraiser check — no operator hand-copying hex into --expected-pcrN.

  • internal/goldenpcr: IMDS + DescribeImages behind interfaces; fake-driven tests.
  • cmd/tpm: --expected-from-ami; explicit --expected-pcrN overrides; a source AMI with no attest:pcr* tags is an error (fail-closed).
  • adds aws-sdk-go-v2/service/ec2.

The golden tags are locked to the vetter by ground's lockdown SCP (provabl/ground#21). Same internal/goldenpcr as nitro (duplicate-not-share, consistent with preflight).

Refs: #13

The NitroTPM counterpart to nitro's --expected-from-ami. On the live instance,
reads the source AMI id from IMDS (ami-id) and pulls its attest:pcr<N> golden
tags (the ones vet ami-reference writes) via ec2:DescribeImages, feeding them to
the expected_pcr<N> appraiser check — no operator hand-copying hex.

- internal/goldenpcr: IMDS + DescribeImages behind interfaces; fake-driven tests.
- cmd/tpm: --expected-from-ami flag; explicit --expected-pcrN overrides; a source
  AMI with no attest:pcr* tags is an error (fail-closed).
- adds aws-sdk-go-v2/service/ec2.

Refs: #13
@scttfrdmn
scttfrdmn merged commit c1db977 into main Jun 11, 2026
3 checks passed
@scttfrdmn
scttfrdmn deleted the feat/expected-from-ami branch June 11, 2026 21:46
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