go-spacemesh
go-spacemesh copied to clipboard
Flag remoteNodeManagement
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
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.
@lrettig any thoughts?
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.