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

go/runtime/registry: allow client nodes to run sgx runtimes #4832

Merged
merged 2 commits into from
Jul 1, 2022

Conversation

nhynes
Copy link
Contributor

@nhynes nhynes commented Jun 30, 2022

This PR allows client nodes to run SGX runtimes, which enables them to request keys from a (privately) peered key manager. The RuntimeDebugForceELF flag was replaced with a more general one. The former one doesn't seem to be used in this repo, so it should be okay.

@nhynes nhynes changed the title go/runtime/registry: allow client nodes to run sgx go/runtime/registry: allow client nodes to run sgx runtimes Jun 30, 2022
@codecov
Copy link

codecov bot commented Jun 30, 2022

Codecov Report

Merging #4832 (df7c7ce) into master (0bd46b4) will decrease coverage by 0.12%.
The diff coverage is 78.57%.

@@            Coverage Diff             @@
##           master    #4832      +/-   ##
==========================================
- Coverage   66.74%   66.61%   -0.13%     
==========================================
  Files         452      452              
  Lines       50336    50338       +2     
==========================================
- Hits        33597    33534      -63     
- Misses      12586    12643      +57     
- Partials     4153     4161       +8     
Impacted Files Coverage Δ
go/beacon/api/grpc.go 28.00% <ø> (ø)
go/common/cache/lru/lru.go 97.72% <ø> (ø)
go/common/crypto/address/context.go 86.66% <ø> (ø)
go/common/crypto/sakg/bip32.go 96.22% <ø> (ø)
go/common/crypto/sakg/sakg.go 72.72% <ø> (ø)
go/common/crypto/signature/batch_verification.go 85.48% <ø> (ø)
go/common/crypto/signature/signature.go 55.42% <ø> (ø)
go/common/crypto/signature/signers/remote/grpc.go 33.33% <ø> (ø)
go/common/node/node.go 68.46% <ø> (ø)
go/common/prettyprint/quantity.go 59.09% <ø> (ø)
... and 103 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f121d40...df7c7ce. Read the comment docs.

go/runtime/registry/config.go Outdated Show resolved Hide resolved
go/runtime/registry/config.go Outdated Show resolved Hide resolved
go/runtime/registry/config.go Outdated Show resolved Hide resolved
@nhynes nhynes requested a review from kostko July 1, 2022 04:14
@@ -37,6 +37,9 @@ const (
CfgRuntimePaths = "runtime.paths"
// CfgSandboxBinary configures the runtime sandbox binary location.
CfgSandboxBinary = "runtime.sandbox.binary"
// CfgRuntimeEnv sets the runtime environment. Setting an environment that does not
Copy link
Member

Choose a reason for hiding this comment

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

Looks like something is up with the linter, maybe since the update to Go 1.18?

Suggested change
// CfgRuntimeEnv sets the runtime environment. Setting an environment that does not
// CfgRuntimeEnvironment sets the runtime environment. Setting an environment that does not

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, this is totally messed up. I'm going to fix the linter. Sorry for using so much jernej-lint. Next time won't have issues!

@nhynes nhynes merged commit 0eda60a into master Jul 1, 2022
@nhynes nhynes deleted the nhynes/client-node-sgx branch July 1, 2022 14:21
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.

2 participants