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

Introduce shim verifier client to the launcher #203

Merged
merged 5 commits into from
Jun 3, 2022

Conversation

alexmwu
Copy link
Contributor

@alexmwu alexmwu commented May 27, 2022

The shim client will serve as a common abstraction between different attestation verifier implementations. For now, we just wrap the gRPC attestation verifier in the client. Eventually, with other attestation verifiers, we can support multiple protocols more easily as well as create a more robust fake.

This PR also renames launcher/attest.go to launcher/agent.go

launcher/internal/verifier/client.go Outdated Show resolved Hide resolved
alexmwu added 3 commits June 1, 2022 10:47
The shim client will serve as a common abstraction between different
attestation verifier implementations. For now, we just wrap the gRPC
attestation verifier in the client. Eventually, with other attestation
verifiers, we can support multiple protocols more easily as well as
create a more robust fake.
There are already multiple files named attest.go, causing confusion.
Since launcher/attest.go contains the attestation agent, agent.go is a
better name.
Copy link
Member

@josephlr josephlr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to also move all the other GRPC related stuff into launcher/internal/verifier, so we can move it out of the way from the core application logic?

launcher/internal/verifier/client.go Outdated Show resolved Hide resolved
launcher/agent.go Outdated Show resolved Hide resolved
launcher/internal/verifier/grpc_client.go Outdated Show resolved Hide resolved
alexmwu added 2 commits June 2, 2022 18:30
Export Challenge and VerifyAttestationResponse fields, except for
Challenge.connID.
Fix minor formatting issue.
Remove logger from verifier.Client in favor of attestation verifier
specific logging.
@alexmwu
Copy link
Contributor Author

alexmwu commented Jun 2, 2022

Would it be possible to also move all the other GRPC related stuff into launcher/internal/verifier, so we can move it out of the way from the core application logic?

Sure, I moved it into internal/verifier and also regenerated the pbs/upgraded the protobuf lib

@alexmwu alexmwu merged commit aaf5d3c into google:master Jun 3, 2022
@alexmwu alexmwu deleted the launcher branch June 3, 2022 14:10
@JoshuaKrstic JoshuaKrstic mentioned this pull request Aug 19, 2022
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