Replies: 3 comments 15 replies
-
I think software ought to check if the events from the relay match the filter that was sent. I believe I am doing that elsewhere. For the other cases of bad behavior by a relay, I think you just have to have ways of noticing this and then blocking that relay. |
Beta Was this translation helpful? Give feedback.
-
At the moment only these stuff is checked:
Any additional check can be implemented using the admission policy trait.
Yeah, @dluvian suggested this time ago but at the moment is not currently implemented. Some stuff must be adjusted before:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Do we have a mechanism to handle malicious relays? Since clients sometimes need to connect to unknown relays, for example, when sending events to a user's READ relays or fetching from their WRITE relays, how does the crate handle cases where a relay returns unrelated or unwanted content?
For instance, if I request user
A
's notes from a relay, but it returns NSFW notes that aren't fromA
, will the crate still pass those events to the client for display?Additionally, when fetching events with a filter, I expect all returned events to match that filter. Does the crate verify this?
If not (based on my view on the source code, it doesn't), could we implement such a check, or would that be overcomplicating things?
cc: @yukibtc @DanConwayDev @dluvian @mikedilger
I'm curious to hear your thoughts on this.
Beta Was this translation helpful? Give feedback.
All reactions