Merge branch 'feature/iam-07-account-lockout-login-rate-limiting' into feature/qa-02-pruefgate-identitaet-mandanten

# Conflicts:
#	scripts/reset-test-env.sh
#	scripts/run-checks.sh
This commit is contained in:
sysops
2026-08-29 00:11:09 +02:00
5 changed files with 384 additions and 0 deletions
@@ -0,0 +1 @@
DROP TABLE IF EXISTS login_attempts;
@@ -0,0 +1,10 @@
-- Account-Lockout & Login-Rate-Limiting (IAM-07, siehe
-- core-kanban/tickets/IAM-07.md). Geteilter, externer Zustand in Postgres —
-- kein In-Process-Zaehler (bekannter Fehler aus archivdms
-- internal/auth/ratelimit.go), gilt korrekt ueber mehrere Core-Instanzen.
CREATE TABLE login_attempts (
email TEXT PRIMARY KEY,
failed_count INT NOT NULL DEFAULT 0,
locked_until TIMESTAMPTZ,
last_attempt_at TIMESTAMPTZ NOT NULL DEFAULT now()
);