feat: add in-memory rate limiting for login endpoint

Rate-limit POST /admin/login at 10 attempts per 60 seconds per IP.
Stored in Volumen.login_attempts so tests can reset the counter.
This commit is contained in:
2026-06-25 21:33:16 +02:00
parent 2348352fab
commit 140b16b55a
3 changed files with 25 additions and 0 deletions
+1
View File
@@ -30,6 +30,7 @@ class AdminTest < Minitest::Test
TOML
@config = Volumen::Config.load(path: config_path)
@store = Volumen::Store.new(@posts_dir, default_lang: "en")
Volumen.reset_login_attempts!
end
def teardown