-
Notifications
You must be signed in to change notification settings - Fork 75
Add client.Attest #106
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 client.Attest #106
Conversation
This allows verification to be checked client side, and this functionaliy makes more sense as a method. Signed-off-by: Joe Richey <joerichey@google.com>
This means that: - We now do a PCR Read in client.Quote() - Quote.Verify no longer needs to take a Pcrs parameter - Our tests can be slightly simplified Signed-off-by: Joe Richey <joerichey@google.com>
This runs a sanity check client side, so that if there is an issue, we get a client error. Note this change _is not_ for security, the server still must verify the quote, it is just for reliablity/ergonomics. Signed-off-by: Joe Richey <joerichey@google.com>
Add a list of all checks we perform (to make auditing easier). Also change the parameter names to better reflect their purpose Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Joe Richey <joerichey@google.com>
Both ReadAllPCRs and Attest will need this functionality Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Joe Richey <joerichey@google.com>
@iKevinY PTAL, this should be all the code needed client-side |
Changes LGTM overall (will let others do the formal code review). |
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.
Are we adding tests for Attest() later?
Yes, there will be two types of tests:
|
This change adds an
Attest
method toKey
, as well as some smaller organizational changes aroundQuote.Verify
. See the individual commits for more information.Things that are still needed (will be in other PRs):