Repository navigation
feat: tpm attest --expected-from-ami auto-loads golden PCRs (provabl#13) - #3
Merged
Merged
Conversation
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
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.
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 itsattest:pcr<N>golden tags (written byvet ami-reference) viaec2:DescribeImages, feeding them to theexpected_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-pcrNoverrides; a source AMI with noattest:pcr*tags is an error (fail-closed).aws-sdk-go-v2/service/ec2.The golden tags are locked to the vetter by ground's lockdown SCP (provabl/ground#21). Same
internal/goldenpcras nitro (duplicate-not-share, consistent with preflight).Refs: #13