]> git.proxmox.com Git - proxmox.git/commit
tfa: add data for rate limiting and blocking
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 20 Apr 2023 14:08:00 +0000 (16:08 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 10 May 2023 08:26:51 +0000 (10:26 +0200)
commit50b793db8d3421bbfe2bce060a486263f18a90cb
tree3a5b077947971808647ed628b576637e8f98143c
parent8d968274f12f25b3e3cd1231b4a403e984a0a116
tfa: add data for rate limiting and blocking

TfaUserData uses `#[serde(deny_unknown_fields)]`, so we add
this now, but using it will require explicitly enabling it.

If the TOTP count is high, the user should be locked out of
TOTP entirely until they use a recovery key to reset the
count.

If a user's TFA try count is too high, they should get rate
limited.

In both cases they should receive some kind of notification.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-tfa/src/api/mod.rs