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: Add key manager EnclaveRPC support to client runtime hosts #4244

Merged
merged 2 commits into from
Sep 3, 2021

Conversation

kostko
Copy link
Member

@kostko kostko commented Sep 3, 2021

Previously runtimes hosted on client nodes were not able to issue EnclaveRPC
requests as the endpoint was not implemented in the handler. This unifies the
handler implementations between the client and compute nodes and makes sure that
key manager requests are possible (of course client nodes will only be able to
request public keys).

Also removes the EnclaveRPC client interface as the idea is to go through runtime
queries (as the SDK now supports using the key manager). Note that the client part
of EnclaveRPC transport was already removed when doing the gRPC refactor.

@kostko kostko added c:client Category: client interface c:bug Category: bug labels Sep 3, 2021
@kostko kostko added this to Planned in Core 21.3 via automation Sep 3, 2021
@kostko kostko moved this from Planned to In Progress in Core 21.3 Sep 3, 2021
@kostko kostko force-pushed the kostko/fix/client-rt-host-keymgr branch 3 times, most recently from c3f96d9 to d872808 Compare September 3, 2021 13:11
Previously runtimes hosted on client nodes were not able to issue EnclaveRPC
requests as the endpoint was not implemented in the handler. This unifies the
handler implementations between the client and compute nodes and makes sure that
key manager requests are possible (of course client nodes will only be able to
request public keys).
@kostko kostko force-pushed the kostko/fix/client-rt-host-keymgr branch from d872808 to cea23e3 Compare September 3, 2021 13:20
@codecov
Copy link

codecov bot commented Sep 3, 2021

Codecov Report

Merging #4244 (cea23e3) into master (a120f14) will decrease coverage by 0.38%.
The diff coverage is 70.04%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4244      +/-   ##
==========================================
- Coverage   69.03%   68.65%   -0.39%     
==========================================
  Files         408      408              
  Lines       46976    46990      +14     
==========================================
- Hits        32430    32261     -169     
- Misses      10535    10738     +203     
+ Partials     4011     3991      -20     
Impacted Files Coverage Δ
go/oasis-node/cmd/node/node.go 57.38% <ø> (+1.58%) ⬆️
go/runtime/client/client.go 74.57% <ø> (+7.78%) ⬆️
go/runtime/client/host.go 54.54% <21.73%> (-3.29%) ⬇️
go/runtime/registry/host.go 68.15% <65.07%> (-13.10%) ⬇️
go/common/node/node.go 73.40% <100.00%> (+8.07%) ⬆️
go/runtime/client/api/grpc.go 67.63% <100.00%> (-0.16%) ⬇️
go/worker/common/committee/runtime_host.go 100.00% <100.00%> (+34.74%) ⬆️
go/worker/keymanager/worker.go 63.58% <100.00%> (-3.85%) ⬇️
...nsensus/tendermint/apps/keymanager/transactions.go 0.00% <0.00%> (-52.95%) ⬇️
go/ias/http/http.go 20.33% <0.00%> (-44.07%) ⬇️
... and 41 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 76e0c8d...cea23e3. Read the comment docs.

@kostko kostko merged commit 029cc22 into master Sep 3, 2021
Core 21.3 automation moved this from In Progress to Done Sep 3, 2021
@kostko kostko deleted the kostko/fix/client-rt-host-keymgr branch September 3, 2021 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:bug Category: bug c:client Category: client interface
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants