XRPLF / clio

An XRP Ledger API Server
https://xrpl.org
ISC License
55 stars 48 forks source link

Add X-User header in forwarded requests #1422

Closed kuznetsss closed 2 weeks ago

kuznetsss commented 1 month ago

Summary

Clio should be able optionally to pass through rippled's rate limiter.

Motivation

Rippled is rate limiting requests forwarded by Clio. Sometimes it is not desired.

Solution

Rippled has ratelimiting on unauthorised requests. Adding X-User header to request will turn off ratelimiting on rippled's side for the request. We should always add X-User to requests with admin permissions and an option to config to make it possible to set up Clio to add X-User header value for all the forwarded requests.