-
Notifications
You must be signed in to change notification settings - Fork 34
Add SEVSNP plugin for Veraison server #333
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
Conversation
f0bc831 to
80ddda3
Compare
yogeshbdeshpande
left a comment
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.
in middle of review, just started today
|
As we are adding new
Also remember to check the suitable places in |
yogeshbdeshpande
left a comment
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.
Left some further comments.
|
thomas-fossati
left a comment
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.
Thanks, this is great.
I have left a few comments inline.
Add amd-kds and nvidia coserv plugins to the spec file Signed-off-by: Jagannathan Raman <[email protected]>
a050ee6 to
c7d0d26
Compare
3a25322 to
c7d0d26
Compare
define SEV-SNP scheme for Veraison. Signed-off-by: Jagannathan Raman <[email protected]>
store the trust anchors and reference values in the CoMID's "Attest Key Triple" and "Reference Value Triple" formats. Signed-off-by: Jagannathan Raman <[email protected]>
accept CoRIM endorsements, reference values & trust anchors, and save them in the database. Signed-off-by: Jagannathan Raman <[email protected]>
Done |
OK, I'll add this to the scheme's README. |
implement parts of the store handler that synthesize keys from trust anchors and reference values. Signed-off-by: Jagannathan Raman <[email protected]>
c7d0d26 to
a853d90
Compare
yogeshbdeshpande
left a comment
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.
Approved, subjecting to checking whether two minor comments have been incorporated or not..?
Thank you so much, @yogeshbdeshpande! The lint error is because we're not using the return value of errors.New(). I'll update it quickly. |
Yes, we can resolve the same and move quickly, this PR has been waiting for some time now. |
I have a couple of comments that should probably be acted upon. They are both very simple. |
I'm working on your comments, @thomas-fossati . Will update the PR shortly. Thank you! |
yogeshbdeshpande
left a comment
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.
LGTM!
Implement an evidence handler to extract claims from the evidence token and store them in an internal representation format ( CoRIM for SEV-SNP). Signed-off-by: Jagannathan Raman <[email protected]>
Update the store handler to get Trust Anchor and Reference Value keys from evidence. Add helper routines to parse the TSM report's auxblob to extract AMD keys. Signed-off-by: Jagannathan Raman <[email protected]>
Implement the ValidateEvidenceIntegrity routine of the EvidenceHandler interface. Ensure the root key in auxblob matches the ARK in provisioned trust anchors. Confirm the integrity of the certificate chain in the auxblob and the validity of the signature in the evidence. Signed-off-by: Jagannathan Raman <[email protected]>
Implement the AppraiseEvidence routine in the EvidenceHandler interface to confirm the claims match with the evidence. Signed-off-by: Jagannathan Raman <[email protected]>
Add unit tests for endorsement, evidence and storage handlers Signed-off-by: Jagannathan Raman <[email protected]>
7107662 to
d10dd2b
Compare
Add README document for SEVSNP scheme Signed-off-by: Jagannathan Raman <[email protected]>
Allow SEVSNP scheme to accept evidence in CMW collection format Signed-off-by: Jagannathan Raman <[email protected]>
REPORTED_TCB is a bitfield of versions. Extract individual versions for comparison. REPORTED_TCB in evidence should be greater than or equal to the reference value. Signed-off-by: Jagannathan Raman <[email protected]>
Some claims in the SEV-SNP profile aren't relevant for verification, so skipping them Signed-off-by: Jagannathan Raman <[email protected]>
The nonce in the evidence must match the session nonce that veraison generated Signed-off-by: Jagannathan Raman <[email protected]>
Add TSM report evidence in JSON & CBOR formats for testing Signed-off-by: Jagannathan Raman <[email protected]>
Add global variables to log errors in the compareTcb function Signed-off-by: Yogesh Deshpande <[email protected]> Signed-off-by: Jagannathan Raman <[email protected]>
d10dd2b to
1e5b81d
Compare
yogeshbdeshpande
left a comment
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.
Thank you for incorporating my comments!
LGTM!
|
@thomas-fossati : Please give a final look and provide your approval... |
thomas-fossati
left a comment
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.
Thanks a lot for the execellent contribution!
|
Thank you so much for reviewing, @yogeshbdeshpande and @thomas-fossati ! |
This PR implements the SEVSNP scheme for Veraison.