Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /authentication_pwd /tumma72_mlx-manager.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client code in the working tree sends credentials to POST /api/auth/login (only backend/ and scripts/ exist; the frontend is not present). The caller is outside the repo; tests ignored." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login", | |
| "file": "backend/mlx_manager/routers/auth.py", | |
| "lines": "69", | |
| "notes": "FastAPI route handler POST /api/auth/login (router registered in backend/mlx_manager/main.py:342) receives email/password via OAuth2PasswordRequestForm and raises HTTP 401 at auth.py:83 when verify_password fails, otherwise issues a token." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "verify_password", | |
| "file": "backend/mlx_manager/services/auth_service.py", | |
| "lines": "25", | |
| "notes": "Called by the Enforcer login at backend/mlx_manager/routers/auth.py:82 with the received password and the stored hash (fetched inline in login at auth.py:78). It forwards both to pwdlib PasswordHash.verify and returns the boolean result." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "User", | |
| "file": "backend/mlx_manager/models/entities.py", | |
| "lines": "30", | |
| "notes": "SQLModel table 'users' with hashed_password column (entities.py:36); login queries it inline via session.execute(select(User).where(User.email == ...)) at backend/mlx_manager/routers/auth.py:78, and the hash is passed to verify_password at auth.py:82. No dedicated repository method exists, so the table class is cited." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "backend/mlx_manager/services/auth_service.py", | |
| "lines": "27", | |
| "notes": "Reached from verify_password (auth_service.py:25); pwdlib PasswordHash.verify (Argon2, configured via PasswordHash.recommended() at auth_service.py:17) re-hashes the password with the stored salt. The same call also performs the comparison (Comparator)." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper value is stored or used on the verify_password path (auth_service.py:25-27); searched for pepper/hmac/secret usage in backend/mlx_manager. settings.jwt_secret is only used for JWT signing, not as a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The Argon2 hash is not encrypted/peppered with any key on the verification path (auth_service.py:25-27); no encryption call found." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "backend/mlx_manager/services/auth_service.py", | |
| "lines": "27", | |
| "notes": "Reached from verify_password (auth_service.py:25); pwdlib PasswordHash.verify (Argon2 hasher) compares the recomputed hash against the stored hashed_password and returns a boolean. Same call as the Hasher." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "create_access_token", | |
| "file": "backend/mlx_manager/services/auth_service.py", | |
| "lines": "30", | |
| "notes": "After the Enforcer login passes password verification (and status checks), it calls create_access_token at backend/mlx_manager/routers/auth.py:102 to issue the JWT returned to the client (success branch of the login action)." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.65 kB
- Xet hash:
- 624abf4cccb17b72f781b073955d1cc3372b9a1b405f018bce407dba94474c5d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.