auth: ban consecutive failed requests
authorSven Rademakers <sven.rademakers@gmail.com>
Wed, 25 Oct 2023 16:28:41 +0000 (17:28 +0100)
committerSven Rademakers <sven.rademakers@gmail.com>
Fri, 3 Nov 2023 14:50:17 +0000 (14:50 +0000)
commitc1c6e3c3c3e38f90265fb1993174cdda0e600623
tree4650117e43190d4b534b82c4811c2ac804c8628a
parent59024bd3b4615ab926177a50b73387038b18afda
auth: ban consecutive failed requests

Consecutive unauthenticated requests that exceed a given threshold will
be banned for a given period before they are allowed to make any new
request. Every consecutive failed attempt exponentially increases the
cool down period in which the peer is blocked from authenticate itself
up to a upper limit.
default_config.yaml
src/authentication.rs
src/authentication/authentication_context.rs
src/authentication/authentication_service.rs
src/authentication/ban_patrol.rs [new file with mode: 0644]
src/authentication/linux_authenticator.rs
src/firmware_update/rockusb_fwudate.rs