Skip to content

privval: add grpc#5725

Merged
tac0turtle merged 48 commits intomasterfrom
marko/priv_grpc
Jan 6, 2021
Merged

privval: add grpc#5725
tac0turtle merged 48 commits intomasterfrom
marko/priv_grpc

Conversation

@tac0turtle
Copy link
Contributor

@tac0turtle tac0turtle commented Nov 30, 2020

Description

  • Add gRPC as an option for remote signers

todo:

  • add grpc option to e2e tests

Closes: #4698
Closes: #3885

@tac0turtle tac0turtle added the T:validator Type: Validator related label Nov 30, 2020
@tac0turtle tac0turtle self-assigned this Nov 30, 2020
@lgtm-com
Copy link

lgtm-com bot commented Nov 30, 2020

This pull request introduces 1 alert when merging c1dcb23 into e13b438 - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

@codecov
Copy link

codecov bot commented Nov 30, 2020

Codecov Report

Merging #5725 (9a1f17d) into master (e986602) will decrease coverage by 0.19%.
The diff coverage is 37.12%.

@@            Coverage Diff             @@
##           master    #5725      +/-   ##
==========================================
- Coverage   60.10%   59.90%   -0.20%     
==========================================
  Files         263      267       +4     
  Lines       23938    24094     +156     
==========================================
+ Hits        14387    14433      +46     
- Misses       8018     8126     +108     
- Partials     1533     1535       +2     
Impacted Files Coverage Δ
config/config.go 76.26% <0.00%> (-3.02%) ⬇️
config/toml.go 60.86% <ø> (ø)
privval/grpc/util.go 0.00% <0.00%> (ø)
test/e2e/generator/generate.go 0.00% <ø> (ø)
types/priv_validator.go 53.65% <0.00%> (-1.35%) ⬇️
node/node.go 55.68% <17.64%> (-2.62%) ⬇️
privval/grpc/client.go 53.84% <53.84%> (ø)
privval/grpc/server.go 93.10% <93.10%> (ø)
node/utils.go 100.00% <100.00%> (ø)
crypto/sr25519/pubkey.go 43.47% <0.00%> (-8.70%) ⬇️
... and 18 more

@tac0turtle
Copy link
Contributor Author

Marking as r4r, the outstanding item is to integrate into e2e.

@tac0turtle tac0turtle marked this pull request as ready for review December 2, 2020 15:04
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale for use by stalebot label Dec 21, 2020
@tac0turtle
Copy link
Contributor Author

@tac0turtle tac0turtle removed the stale for use by stalebot label Dec 21, 2020
return nil, status.Errorf(codes.InvalidArgument, "error signing vote: %v", err)
}

ss.logger.Info("SignerServer: SignVote Success")
Copy link
Contributor

Choose a reason for hiding this comment

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

do we want to print some details here? like vote's hash or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure that brings any value to someone using this. Personally I'd consider it noise to have hashes of vote, proposal and various other things in the Info log.

Copy link
Contributor

Choose a reason for hiding this comment

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

u mean operators don't need to see what they're signing? okay

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could you explain why someone would want to use it? I can't see a reason, but could be missing something. For me I wouldn't know what do with the outputted hash.

I can add a debug with hashes and other information.

@github-actions
Copy link

github-actions bot commented Jan 3, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale for use by stalebot label Jan 3, 2021
@tac0turtle tac0turtle removed the stale for use by stalebot label Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T:validator Type: Validator related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

privval: refactor to use gRPC Add monitoring/instrumentation for remote signers (kms/etc.)

5 participants