dedis / onet

Overlay Network for distributed protocols
GNU Lesser General Public License v3.0
51 stars 29 forks source link

Limit allowed connections #620

Closed ineiti closed 4 years ago

ineiti commented 4 years ago

To further lock down the nodes, it should be possible to define which nodes are allowed to connect. This can be a simple extension of the Server structure with something like:

AllowNodes([]network.ServerIdentityID)

Whenever a new block is accepted by the byzcoin service, it would call this method with the latest roster.

The AllowRoster should limit both incoming and outgoing connections to be restricted to the set given in AllowNodes.

An environmental variable can be used to switch between the behaviour before AllowNodes is called: