Allow Rendevouz to require some sort of authentication to register #5638
jakerumbles
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I believe you can design a wrapper behaviour that does authentication for you during protocol negotiation phase, and reject the handshake for the inner behaviour or reject the entire connection altogether when authentication failed. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the network I'm helping build, we have a use case where when a node tries to register under a namespace with the rendevouz server, we want to run some custom checks before approving the namespace registration and giving the node access to discover the peers under the namespace. If they fail the check, then they are not registered under the namespace and they will not be able to discover the peers under the namespace. I'm thinking of potentially opening a branch and working on this, unless this is already possible (but I can't find that functionality anywhere).
I'm thinking something like this
This way one can pass any logic to return a Result giving further tuning capabilities when using rendevouz. Our primary motivation here is reducing opportunities for DoS attacks and the like. Harder to do if you don't know addresses of nodes. This way we can only allow nodes to register that can pass a test that only an honest node could.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions