-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing network authentication and segregation logic to the nodes domain #804
Implementing network authentication and segregation logic to the nodes domain #804
Conversation
I'm refreshing my memory and digging through the code. It seems simple enough to add tracking the authentication to the So.
There is one stumbling block however. Current there is an assumption that a connection that has been added with So when we create a new connection we not only have to wait for the connection to be established but also wait for the network authentication to be completed before it can be used. So we need to update I'll need to think on this some more. |
Status of this @tegefaulkes? |
Still no progress with me focusing on PKE. |
e870757
to
47aff1d
Compare
Reuqires rebase. And ETA on merging this? |
As a suggestion, don't go too deep in the technicalities of this, until we have a PKE prototype of the entire login process. I want to see |
If I can focus solely on this? 2-3 days. The core of the implementation is done I just need to do some edge case logic and clean up. The main thing missing right now is the timeout for authenticating and testing. Right now I'm focusing on prototyping the real time data for PKE and specing out work for Matthew. |
734bbd1
to
4c2d5d8
Compare
Should start squashing. |
Pretty much done now. I've done a personal review and I just need to do the final checklist before merging. With the network authentication, I've set it up so that it works with the public networks. So nodes will only connect to nodes within the same network identified by the network URL. This isn't verified in any way besides just checking what network a node claims to be in. This will be specified by the |
e909006
to
f97eed2
Compare
…using connections that fail to authenticate [ci skip]
f97eed2
to
e346d2d
Compare
c9de653
to
514f11a
Compare
Done and merging. |
For the public networks this is all that is required since they are public. They are self-declared. |
@aryanjassal can we verify this is working by monitoring the node connections. Testnet and mainnet shouldn't be connecting to each other. |
Ideally they shouldn't even try to connect to each other as the node discovery algos should ignore telling the other node about them. |
Description
This PR focuses on adding logic to the nodes domain to handle checking if a connection is part of a certain network. If the check passes then the connection is added to the usual connection map. If it fails the connection is rejected and forced to close.
During this authentication period, only certain RPC calls are allowed to be made. These are calls that...
Both sides of the connection need to authenticate each other before the connection can be used for normal RPC traffic.
Issues Fixed
NodeConnection
s (Segregated Network Connections) #782Tasks
Final checklist