tablelandnetwork / go-tableland

Go implementation of the Tableland database/validator - run your own node, handling on-chain events and serving read-queries
https://tableland.xyz/
MIT License
53 stars 10 forks source link

allows authorized clients to bypass rate limiter #599

Closed brunocalza closed 1 year ago

brunocalza commented 1 year ago

Summary

This PR adds a new config for the HTTP rate limiter: ApiKey. With that, authorized clients (clients that provide the same key) will not be rate limited.

Context

Our Studio application is being rate limited fairly easily.

Implementation overview

Adds a new config to be configured via env. Makes a change to the rate limiter middleware to ignore the authorized clients