COCOS-326 - Cocos vTPM support#376
Conversation
adfe58e to
7134ffc
Compare
f5ef5de to
900ff13
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #376 +/- ##
==========================================
- Coverage 58.89% 56.66% -2.23%
==========================================
Files 56 58 +2
Lines 4695 4998 +303
==========================================
+ Hits 2765 2832 +67
- Misses 1635 1868 +233
- Partials 295 298 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dborovcanin
left a comment
There was a problem hiding this comment.
Can you add some more tests to increase coverage?
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
NOISSUE - Add mock for LeveledQuoteProvider when SEV-SNP device is not found
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
NOISSUE - PCR15 bug
| } | ||
|
|
||
| func prepareForTestVerifyAttestationReport(t *testing.T) ([]byte, []byte) { | ||
| func prepareForTestVerifyAttestationReport(t *testing.T) (*sevsnp.Attestation, []byte) { |
There was a problem hiding this comment.
Rename to something shorter like prepVerifyAttReport.
| @@ -0,0 +1,26 @@ | |||
| // Copyright (c) Ultraviolet | |||
There was a problem hiding this comment.
If this is only used in gRPC test, you can move it to the gRPC test file.
There was a problem hiding this comment.
Yes. Done. Thank you.
| return derBytes, nil | ||
| } | ||
|
|
||
| func createTEEAttestationReportNonce(pubKeyTLS []byte, ak []byte, nonce []byte) ([]byte, error) { |
There was a problem hiding this comment.
Rename to teeAttestReportNonce. Let's use attest as the abbreviation for attestations all over the codebase for the sake of simplicity.
There was a problem hiding this comment.
Done. The rest of the renaming will be done in a separate PR.
| } | ||
| } | ||
| } | ||
|
No newline at end of file |
There was a problem hiding this comment.
Please add an empty line (that is, if it does not mess up unmarshalling).
| "product_line": "Milan" | ||
| } | ||
| } | ||
| } No newline at end of file |
What type of PR is this?
This is a feature that introduces vTPM support to Cocos. vTPM will allow Cocos to measure:
What does this do?
This PR introduces vTPM support for:
Also:
Which issue(s) does this PR fix/relate to?
Have you included tests for your changes?
Tests are in progress.
Did you document any new/modified feature?
Documentation is in progress.
Notes