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

[launcher] Add launcher TEE server implementation #332

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jkl73
Copy link
Contributor

@jkl73 jkl73 commented Jul 13, 2023

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).

.github/workflows/ci.yml Show resolved Hide resolved
launcher/verifier/util.go Outdated Show resolved Hide resolved
launcher/container_runner.go Outdated Show resolved Hide resolved
launcher/container_runner.go Outdated Show resolved Hide resolved
launcher/container_runner.go Outdated Show resolved Hide resolved
launcher/verifier/util.go Outdated Show resolved Hide resolved
launcher/server/server.go Outdated Show resolved Hide resolved
launcher/server/server.go Outdated Show resolved Hide resolved
launcher/server/server.go Outdated Show resolved Hide resolved
attestationVerifierTokenFile = "attestation_verifier_claims_token"
)

type attestHandler struct {
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@jkl73
Copy link
Contributor Author

jkl73 commented Aug 23, 2023

PTAL @alexmwu @JoshuaKrstic

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.

None yet

2 participants