8000 Add client.Attest by josephlr · Pull Request #106 · google/go-tpm-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 7 commits into from
Jun 18, 2021
Merged

Add client.Attest #106

merged 7 commits into from
Jun 18, 2021

Conversation

josephlr
Copy link
Member
@josephlr josephlr commented Jun 18, 2021

This change adds an Attest method to Key, as well as some smaller organizational changes around Quote.Verify. See the individual commits for more information.

Things that are still needed (will be in other PRs):

josephlr added 6 commits June 18, 2021 03:21
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>
@josephlr
Copy link
Member Author

@iKevinY PTAL, this should be all the code needed client-side

@josephlr josephlr requested a review from alexmwu June 18, 2021 11:40
@iKevinY
Copy link
iKevinY commented Jun 18, 2021

@iKevinY PTAL, this should be all the code needed client-side

Changes LGTM overall (will let others do the formal code review).

Copy link
Contributor
@jkl73 jkl73 left a 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?

@josephlr
Copy link
Member Author

Are we adding tests for Attest() later?

Yes, there will be two types of tests:

@josephlr josephlr merged commit b456000 into google:master Jun 18, 2021
@josephlr josephlr deleted the attest branch June 18, 2021 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0