kaspanet / rusty-kaspa

Kaspa full-node and related libraries in the Rust programming language. This is a stable version at the initial rollout phases.
ISC License
359 stars 109 forks source link

Implement RPC authentication #162

Open D-Stacks opened 1 year ago

D-Stacks commented 1 year ago

I would like to transfer the following issue to the rusty-kaspa repo:

Currently, many nodes have RPC ports potentially open to the world Some manner of authentication should be implemented to mitigate it

Suggested solution: gRPC supports authentication out-of-the-box: https://grpc.io/docs/guides/auth/

Source: https://github.com/kaspanet/kaspad/issues/1893

Only the auth method should probably ideally support wRPC, gRPC and all potential future protocols in a generic manner.

D-Stacks commented 1 year ago

As per the original issue; it is preferable if the auth of a connection can be handled on a per call / notfification basis.

KaffinPX commented 1 year ago

It should be handled by proxies, reference sofwares should be simple as much as possible i think

RoboticWF commented 5 months ago

Starting to figure this out now