-
Notifications
You must be signed in to change notification settings - Fork 79
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
Subclutser peer list contains peers not in the subcluster #906
Comments
It's also worth noting that since we cannot currently use for (const peer of this.subcluster.peers.values()) {
peer.emit('message', data)
} |
only peers with the sharedKey will be able to read the contents of the packet (of course you area able to do whatever cryptography you want to do on top of that). the peers listed on sub cluster should only be members of the sub cluster, if you're trying to create a setup where peers that are removed from the sub cluster are no longer able to read the data, that will be an application level security issue. The protocol can not realistically enforce application level security design. |
The list of peers includes peerIds from outside the cluster. |
They must have at one point been a member of the cluster though. When a https://github.com/socketsupply/socket/blob/master/api/stream-relay/sugar.js#L284 |
The subcluster peer list often contains peers that have not joined the subcluster. I guess that this might be because they are relaying, but if that is the case I think they should be hidden.
What OS are you using (
uname -a
, or Windows version)?What version Socket Runtime are you using?
I also tried this on the latest master branch but the results are the same.
What programming language are you using (C/C++/Go/Rust)?
What did you expect to see and what you saw instead?
I would expect that the following would only list peers that have explicitly joined the subcluster.
This list often includes additional peers that are not part of the subcluster.
The text was updated successfully, but these errors were encountered: