Skip to content
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

Enhance light push protocol #93

Open
1 of 8 tasks
Tracked by #3085
fryorcraken opened this issue Sep 27, 2023 · 5 comments
Open
1 of 8 tasks
Tracked by #3085

Enhance light push protocol #93

fryorcraken opened this issue Sep 27, 2023 · 5 comments

Comments

@fryorcraken
Copy link
Contributor

fryorcraken commented Sep 27, 2023

Summary

The Light Push protocol as currently defined is very bare.
After usage and implementations, the need of some features was raised:

  • Returning errors a la filter with error code and description to clarify reason of failure:
  • service node does not have enough relay peer in this mesh for this pubsub topic
  • service node not subscrived to this pub sub topic
  • message pushed is invalid/malformed
  • timestamp out of range
  • (future) RLN proof is invalid (or could be same as above)
  • (future) this content topic is not served
  • Returning information in case of success such as:
    • number of peers to whom the message was forwarded.

Considering the scope of change, backward compatibility should be possible and preferred

Acceptance Criteria

  • Update RFC
  • Implement changes

Tasks

@fryorcraken fryorcraken added the Epic Tracks a sub-team Epic. label Sep 27, 2023
@fryorcraken fryorcraken added this to Waku Sep 27, 2023
@NagyZoltanPeter NagyZoltanPeter self-assigned this Oct 10, 2023
@NagyZoltanPeter NagyZoltanPeter moved this to To Do in Waku Oct 10, 2023
@NagyZoltanPeter NagyZoltanPeter moved this from To Do to In Progress in Waku Oct 17, 2023
@chaitanyaprem
Copy link

Adding the additional error case which was identified during waku-org/nwaku#2601 is

  • In case messageSize crosses the configured network max-msg-size set for relay, respond with allowed messageSize

@fryorcraken
Copy link
Contributor Author

fryorcraken commented May 22, 2024

What is the Status on that? is it done part of Req-Res DoS Protection? @Ivansete-status

@Ivansete-status
Copy link

What is the Status on that? is it done part of Req-Res DoS Protection? @Ivansete-status

Morning @fryorcraken! Thanks for the heads-up!
I think we have something done but I'm not sure about the actual implementation

@NagyZoltanPeter - Kindly share some insight about the implementation we did, if any. On the other hand, we need to create/link nwaku issues as a tasks of this [Epic] Enhance light push protocol, similarly as we are doing in the following epics:

Summarizing, if we haven't had the chance to look at it yet we need to create the necessary nwaku tasks, and link them to this epic, so that we can prioritize them from the nwaku PM sessions :)

Cheers

@NagyZoltanPeter
Copy link

What is the Status on that? is it done part of Req-Res DoS Protection? @Ivansete-status

Morning @fryorcraken! Thanks for the heads-up! I think we have something done but I'm not sure about the actual implementation

@NagyZoltanPeter - Kindly share some insight about the implementation we did, if any. On the other hand, we need to create/link nwaku issues as a tasks of this [Epic] Enhance light push protocol, similarly as we are doing in the following epics:

Summarizing, if we haven't had the chance to look at it yet we need to create the necessary nwaku tasks, and link them to this epic, so that we can prioritize them from the nwaku PM sessions :)

Cheers

@fryorcraken, @Ivansete-status: Honestly I don't remembe why this one is in-progress as we have not implemented these enhancement on error codes for lightpush (currently we are returning a text description of the error or "Ok").
Also to be enhanced the relay's publish does not really propagate errors, only the peers count that succeeded to relay to.
In the last release @shash256 implemented message size validation.
If that ok I will create the issues on nwaku repo and link them here.

Also these are not in scope for DOS protection.

@NagyZoltanPeter NagyZoltanPeter moved this from In Progress to To Do in Waku May 23, 2024
NagyZoltanPeter added a commit to waku-org/specs that referenced this issue May 29, 2024
NagyZoltanPeter added a commit to waku-org/specs that referenced this issue May 29, 2024
@fryorcraken
Copy link
Contributor Author

This is part of #186 cc @chair28980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Do
Development

No branches or pull requests

5 participants