Skip to content
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

Add logic to get Advisories from TcbInfo #89

Merged
merged 2 commits into from
May 24, 2023

Conversation

nick-mobilecoin
Copy link
Collaborator

The Advisories corresponding to a given TCB can now be retrieved from
the TcbInfo.

Motivation

@nick-mobilecoin nick-mobilecoin requested review from cbeck88 and removed request for a team May 16, 2023 15:50
@github-actions
Copy link

❌ Unreviewed dependencies found

Crate Version Reviews (N/2) LoC Left-Pad Index Geiger Flags

@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Merging #89 (02159d7) into nick/displayable-error-tree (a83bf08) will increase coverage by 0.11%.
The diff coverage is 100.00%.

@@                       Coverage Diff                       @@
##           nick/displayable-error-tree      #89      +/-   ##
===============================================================
+ Coverage                        98.26%   98.38%   +0.11%     
===============================================================
  Files                                7        7              
  Lines                             1847     1983     +136     
===============================================================
+ Hits                              1815     1951     +136     
  Misses                              32       32              
Impacted Files Coverage Δ
verifier/src/lib.rs 92.66% <ø> (ø)
verifier/src/tcb.rs 99.78% <100.00%> (+0.08%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nick-mobilecoin
Copy link
Collaborator Author

Moving to draft. this has cmp_svns() which even in parital order isn't valid becuase it requires, Antisymmetry which is not the case for comparing the svn values

@nick-mobilecoin nick-mobilecoin marked this pull request as draft May 16, 2023 16:09
@nick-mobilecoin nick-mobilecoin marked this pull request as ready for review May 16, 2023 16:25
@meowblecoinbot meowblecoinbot requested a review from a team May 16, 2023 16:26
verifier/src/tcb.rs Outdated Show resolved Hide resolved
The `Advisories` corresponding to a given TCB can now be retrieved from
the `TcbInfo`.
Previously `TcbInfo::advisories()` would return an `Option`. Now
`TcbInfo::advisories()` returns a `Result<>` with dedicated errors for
mismatched FMSPC and unsupported TCB level.
nick-mobilecoin added a commit to mobilecoinfoundation/sgx that referenced this pull request May 22, 2023
Previously the only way to construct a `TcbInfo` was via the `TryFrom`
trait. Now a `new()` method is available for creating a `TcbInfo`.

While working on
mobilecoinfoundation/attestation#89 it became
apparent that not being able to easily construct a `TcbInfo` type would
be difficult to test the behavior of finding the correct advisories for
a given TCB
Base automatically changed from nick/displayable-error-tree to main May 24, 2023 14:43
@nick-mobilecoin
Copy link
Collaborator Author

@nick-mobilecoin started a stack merge that includes this pull request via Graphite.

@nick-mobilecoin nick-mobilecoin merged commit 3deffd2 into main May 24, 2023
25 checks passed
@nick-mobilecoin nick-mobilecoin deleted the nick/get-tcb-for-fmspc branch May 24, 2023 14:48
@nick-mobilecoin
Copy link
Collaborator Author

@nick-mobilecoin merged this pull request with Graphite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Large PRs
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants