-
Notifications
You must be signed in to change notification settings - Fork 66
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
[launcher] Add launcher TEE server implementation #332
base: main
Are you sure you want to change the base?
Conversation
6ea9e88
to
3fc9e39
Compare
db05eb2
to
e8cc7b1
Compare
launcher/server/server.go
Outdated
attestationVerifierTokenFile = "attestation_verifier_claims_token" | ||
) | ||
|
||
type attestHandler struct { |
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.
It seems like should be able to have the fields in attestHandler used by TeeServer. Having an attestHandler complicates a lot of this logic.
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.
Another way is to use closure in the New() function, but I think it is more complex and maybe harder to test. So I plan to leave this as here, the logic can be change later when implementing the actual logic.
06d0ca2
to
4fc8132
Compare
PTAL @alexmwu @JoshuaKrstic |
Add a server in the launcher to allow host <-> container communication.
Refactor container_runner.go, move some code to verifier/util.go
Export HostTokenPath
Tests to be added in a subsequent PR (as it'll require a new test Docker image).