From 709de42ef2c4dd9cec2ccffebea8849dc7759ec7 Mon Sep 17 00:00:00 2001 From: Minei3oat Date: Sun, 28 Sep 2025 20:43:46 +0200 Subject: [PATCH] Restrict bcrypt version to <5 Starting with version 5.0.0, bcrypt will throw a ValueError if the input is more than 72 bytes. passlib's `hash` processes the input such that more than 72 bytes are passed to bcrypt, independently of the input length. As a result, the backend of firegex breaks when calculating the hash in `set_psw`. --- backend/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/requirements.txt b/backend/requirements.txt index 47b95d0..170b816 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -2,6 +2,7 @@ fastapi[all] httpx uvicorn[standard] passlib[bcrypt] +bcrypt <5 psutil python-jose[cryptography] python-socketio