cad7ce71

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Rate limit shared-secret login attempts (#150)

Add an in-memory rate limiter for shared-secret authentication attempts. Repeated login attempts now return 429 after exhausting the 24-hour limit.

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/150

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 3s 3s 4s
Eval 3s 56s 56s 1m00s
Build 6s 1m51s 24s 31s
Test - - - -
Deploy - - - -
Suite 0s 2m51s 59s 1m00s

Timeline

0s10s20s30s40s50s1m