go-spacemesh icon indicating copy to clipboard operation
go-spacemesh copied to clipboard

Flag remoteNodeManagement

Open valar999 opened this issue 4 years ago • 3 comments

Description

Add boolean flag to config remoteNodeManagement with default value of false. Only accept write methods (methods that modify node) in NodeService from localhost unless flag is set to true.

Blocks https://github.com/spacemeshos/ws-ops/issues/25

valar999 avatar Jul 09 '21 17:07 valar999

Usually private and public servers are just running on different sockets (e.g. private only on localhost). Based on an attached issue we should split our single API servers into two. Doing checks based on a source and a variable sounds quite hacky in the API.

dshulyak avatar Aug 20 '21 04:08 dshulyak

@lrettig any thoughts?

moshababo avatar Jun 26 '22 13:06 moshababo

Agree with @dshulyak, this should not be a flag. It should either be different API services, or two entire API servers running on two different ports/interfaces.

lrettig avatar Jun 27 '22 20:06 lrettig