diff --git a/attestation.go b/attestation.go index ee632b1..317faad 100644 --- a/attestation.go +++ b/attestation.go @@ -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]