Skip to content

Commit

Permalink
Ignore PCR3 during key sync attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
DJAndries committed Sep 17, 2024
1 parent 42dfbcf commit 12da224
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ func arePCRsIdentical(ourPCRs, theirPCRs map[uint][]byte) bool {
}

for pcr, ourValue := range ourPCRs {
// PCR4 contains a hash over the parent's instance ID. Our enclaves run
// on different parent instances; PCR4 will therefore always differ:
// PCR3 and PCR4 are hashes of the parent's instance ID and IAM role, respectively.
// Our enclaves run on different parent instances; PCR3 and PCR4 will therefore always differ:
// https://docs.aws.amazon.com/enclaves/latest/user/set-up-attestation.html
if pcr == 4 {
if pcr == 3 || pcr == 4 {
continue
}
theirValue, exists := theirPCRs[pcr]
Expand Down

0 comments on commit 12da224

Please sign in to comment.