-
Notifications
You must be signed in to change notification settings - Fork 13
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
[RelayMiner] Add an ability to test RelayMiner configuration without application #447
Comments
@okdas to provide a link to |
In This argument then adds a new http route where the relay simulation request can be sent to. For example, this is how I used to do that: Fusecurl -X POST \
--data '{"relay_network_id":"0005","payload":{"data":"{\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\":[],\"id\":0}","method":"POST","path":"","headers":{}}}' \
http://localhost:8081/v1/client/sim xdaicurl -X POST \
--data '{"relay_network_id":"0027","payload":{"data":"{\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\":[],\"id\":0}","method":"POST","path":"","headers":{}}}' \
http://localhost:8081/v1/client/sim I think we have an opportunity to make this functionality more user-friendly and still secure at the same time. The simplest way to implement I think would be to add some sort of "password" or a token that can be passed via HTTP header. |
Hey folks! I've been considering integrating the capability to test the connection between the Relay Server and the suppliers' endpoints to increase confidence in the Relay Miner configuration for operators. Based on what is already implemented in Morse, the discussion around the topic, and this issue, I've come up with two use cases for operators:
Use case 1We can add a safeguard at the startup process to ensure every supplier's backend URLs are reachable (before starting the relay servers). This safeguard logic will be responsible for dialing every supplier's backend URL to test the connectivity. Then, we could expose this capability as an endpoint (
ping:
enabled: <string>
addr: <string> Use case 2We can set up an authenticated endpoint (
We could also make this feature configurable through the Relay Miner's configuration: forward:
enabled: true
auth-token: <token> Questions
I am still grasping the code, but I would like your input. Thanks 🙏🏾 (I've just linked a draft PR so you can get a better idea of what I am proposing) |
@eddyzags Thank you for your contribution. You've correctly identified the use cases, and the proposed solution aligns with our goals. Let me address your questions: There isn't a one-to-one relationship between
Regarding your comment about the Server Config Hydrator: It actually does allow for multiple servers, but we should clarify this in the comments. We're ensuring unique URLs/listen addresses for starting Thank you for submitting the PR. I'll examine it and respond with comments before EOW. |
@eddyzags Is this something you still plan to tackle? |
@Olshansk Yes. Sorry for the delay; I am re-prioritizing this. |
Thanks @eddyzags, we'll take a look by end of week! |
@eddyzags Please see this comment: #744 (comment) |
Objective
The current Morse mainnet client has a feature to send relays without application signature. We should add this functionality to RelayMiner: an ability to send relay through a supplier without providing meta information (session, signature, etc.) so operators can verify their RelayMiner configuration.
Origin Document
Requests from the community:
First mentioned in internal communication.
In the current Morse client, the feature is enabled by adding
--simulateRelay
argument. In our implementation, we can consider adding this to the relayminer config file.Goals
General deliverables
Creator: @okdas
The text was updated successfully, but these errors were encountered: