Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Networking Primitives to get ready for Sentry Nodes #2999

Closed
rphmeier opened this issue Jul 2, 2019 · 4 comments
Closed

Networking Primitives to get ready for Sentry Nodes #2999

rphmeier opened this issue Jul 2, 2019 · 4 comments
Assignees
Labels
J0-enhancement An additional feature request.

Comments

@rphmeier
Copy link
Contributor

rphmeier commented Jul 2, 2019

Sentry nodes are special nodes set up by a validator operator that are intended to be the points-of-contact for the validator node, which is shielded from public connections.

Typically, sentry nodes will function as normal nodes. But for consensus networking in particular, they will have to behave as though they are the validator node. That means that it needs to become aware of what knowledge the validator node has.

This will typically be handled on the level of particular networking protocols (knowing how to proxy certain requests to the underlying validator).


Basics

What needs to be made available to the networking protocol:

  • Whether the local node has sentry nodes and what their PeerIds are.
  • Whether the local node is a sentry node and what its PeerId is.

This information needs to be made available to the core-level networking, any NetworkSpecialization and any consensus_gossip::GossipValidator

Then we'll also need CLI parameters for configuring and setting up sentry nodes.

@rphmeier rphmeier added the J0-enhancement An additional feature request. label Jul 2, 2019
@rphmeier
Copy link
Contributor Author

rphmeier commented Jul 2, 2019

cc @twittner : do you have some input on how best to integrate into the substrate networking to attach info onto PeerIds when connecting?

@twittner
Copy link
Contributor

twittner commented Jul 3, 2019

  • Whether the local node is a sentry node and what its PeerId is.

What the PeerId of its validator node is?

do you have some input on how best to integrate into the substrate networking to attach info onto PeerIds when connecting?

I am not sure what you mean. I think information about PeerIds would go into network::config::NetworkConfiguration.

@rphmeier
Copy link
Contributor Author

rphmeier commented Jul 3, 2019

What the PeerId of its validator node is?

yes, sorry.

@tomaka
Copy link
Contributor

tomaka commented Jul 10, 2020

Done as part of #5520 #5665

@tomaka tomaka closed this as completed Jul 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J0-enhancement An additional feature request.
Projects
None yet
Development

No branches or pull requests

4 participants