integritee-network / pallets

Other
10 stars 14 forks source link

enrich AddedEnclave Event with attestation method and TCB status #179

Closed brenzi closed 1 year ago

brenzi commented 1 year ago

https://github.com/integritee-network/pallets/blob/e124aebb2d3d05a9a65f209f8e6304c6790f15d5/teerex/src/lib.rs#L77

What would be interesting to know in this event:

clangenb commented 1 year ago

At the same time, I would love that this event is a struct with named fields.

coax1d commented 1 year ago

I dont see any TCB_status like Ok or SWHardeningNeeded in the TcbInfoOnChain struct in pallet-teerex the fields are shown in the link below:

https://github.com/integritee-network/pallets/blob/b47aedca9d033e9276494b0e1a2b92ff494d3cf0/primitives/teerex/src/lib.rs#L127-L156

clangenb commented 1 year ago

Yeah, not most intuitive descriptions. :) The thing you are looking for is in the SgxReport, which is returned from the IAS/DCAP verification functions : https://github.com/integritee-network/pallets/blob/b47aedca9d033e9276494b0e1a2b92ff494d3cf0/teerex/src/lib.rs#L576