-
Notifications
You must be signed in to change notification settings - Fork 332
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
Add custom User-Agent header to all Hermes queries #3979
Comments
This requires changes in tendermint-rs, to allow downstream users of HttpClient to specify the user agent. Would you be open to create an issue there and maybe work on a PR for this? |
@romac done, see above. |
@romac so in order to get this done, we need to update Hermes to tendermint-rs 0.37, but when I do this, I face a lot of issues and it fails to compile, namely this one:
Not sure how to resolve it, can you or someone assist here? |
Ah we need to bump the dependency on |
@romac ah, I didn't thought of that. I can make a PR bumping ibc-proto-rs's version of tendermint-proto to 0.37 (tried this locally, it indeed fixed it), do you mind? |
Of course, go ahead, thanks! |
I've just released |
@romac thanks! One more question: it's almost done but I I want to pass Hermes version to the app, like this:
but apparently the
What do you think would be the best way to resolve it? ( |
Let me take a look, I'll figure something out. |
The issue here is that the I would suggest adding
in We'll make sure we keep that constant up to date when we bump the Hermes version. |
Summary
Would be nice if all of the queries that are done by Hermes has their own specific User-Agent header.
Problem Definition
I have a few public nodes and when looking at their logs it's difficult to figure out what app is doing such requests.
There are a lot of queries like this:
which I assume is Hermes, but if there's another Rust app that's doing such requests, it's impossible to distinguish the two.
Proposal
For all of the queries (to RPC node, LCD/REST node and not sure about gRPC node) append a custom User-Agent header (probably something like
hermes/vX.Y.Z
).Acceptance Criteria
For Admin Use
The text was updated successfully, but these errors were encountered: