feat(security): rate limiting /api/v1/auth/login — HRT-62 #6
Reference in New Issue
Block a user
Delete Branch "feature/HRT-62-rate-limiting-login"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix brute force sur /api/v1/auth/login
Ticket: HRT-62
Changements
saas_auth.pylogin()Retry-Aftercollections.defaultdict,threading.Lock,timeportal_server.pyrate_limit_middleware+access_log_middlewaremiddleware.pymais n'étaient pas appliqués surportal_server.pytests/security/test_security.pyTestLoginRateLimitavec 2 tests :test_login_brute_force_blocked_after_5_attemptstest_login_429_has_retry_after_headerTests
Action requise
Après merge, redémarrer le service portal (systemctl/pm2) pour activer le fix.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.