-
Notifications
You must be signed in to change notification settings - Fork 115
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
[BACKPORT] Batch of backports to 20.5.x #2846
Conversation
Previously the IAS proxy could incorrectly panic during shutdown when the context was cancelled.
Common keymanager initalization code is extracted into the `keymanager-lib` crate. This enables for the actual key manager implementation to only provide a set of key manager policy signers. Aditionally the `keymanager-runtime` crate is removed and replaced with a test `simple-keymanager` runtime that is used in E2E tests.
Previously each endpoint required its own gRPC service. But since all EnclaveRPC requests already include an "endpoint" field, it is better to use that for routing requests. This commit adds a new enclaverpc.Endpoint interface that is used as an endpoint descriptor. All endpoints must be registered in advance (e.g., during init). It also changes the key manager EnclaveRPC support to use the new API. Since it changes the gRPC service name this BREAKS the committee gRPC protocol.
Previously we only tested the runtime transport for the key manager so this adds a test that also tests the gRPC transport.
There is a race condition where the committee client has been updated with new connections, but the policy has not yet been as the client is not yet frozen. This could previously lead to a panic in GetConnection but now correctly returns nil.
The condition may be transient if connection is in progress.
b8a1687
to
75b2bfa
Compare
Codecov Report
@@ Coverage Diff @@
## stable/20.5.x #2846 +/- ##
=================================================
+ Coverage 67.25% 68.30% +1.04%
=================================================
Files 343 342 -1
Lines 32987 33094 +107
=================================================
+ Hits 22187 22606 +419
+ Misses 8108 7758 -350
- Partials 2692 2730 +38
Continue to review full report at Codecov.
|
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.
commits seem correct, target branch is ok, CI passed ✔️
Backports the following:
GetEvents
to backends #2841