-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reverse TCB fetch order #5704
Reverse TCB fetch order #5704
Conversation
✅ Deploy Preview for oasisprotocol-oasis-core canceled.
|
go/runtime/host/sgx/epid.go
Outdated
@@ -135,8 +137,8 @@ func (ep *teeStateEPID) update( | |||
// Decode the AVR so we can do further checks. | |||
avr, decErr := cmnIAS.UnsafeDecodeAVR(avrBundle.Body) | |||
if decErr == nil && avr.TCBEvaluationDataNumber < quotePolicy.MinTCBEvaluationDataNumber { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition needs to be changed as early TCB updates will always have higher or equal TCBEvaluationDataNumber
. Instead we should probably check that avr.ISVEnclaveQuoteStatus
is not one of QuoteOK
or QuoteSwHardeningNeeded
and only in this case fall back to "without early updating".
3381a06
to
993c30c
Compare
993c30c
to
09a2c65
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5704 +/- ##
==========================================
+ Coverage 64.98% 65.59% +0.61%
==========================================
Files 618 618
Lines 63185 63186 +1
==========================================
+ Hits 41061 41449 +388
+ Misses 17294 16905 -389
- Partials 4830 4832 +2 ☔ View full report in Codecov by Sentry. |
No description provided.