HomePhabricator

[token-server] Tighten rate limits

Description

[token-server] Tighten rate limits

Summary:
Still seeing some dedicated eCash scripters out there. Will probably need to get fail2ban going soon, but we will also need to do this.

Add rate limit object to config. Make it a param of startExpressServer, so that we can have different rate limits for the prod app and the unit tests. Include high rate limits for the tests so we do not rate limit ourselves.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Differential Revision: https://reviews.bitcoinabc.org/D16742

Details

Provenance
bytesofmanAuthored on Sep 10 2024, 21:12
bytesofmanPushed on Sep 11 2024, 05:49
Reviewer
Restricted Project
Differential Revision
D16742: [token-server] Tighten rate limits
Parents
rABC5d6d5b366d59: [ecash-agora] Prepare agora test framework to have more sats available
Branches
Unknown
Tags
Unknown