Buckets:

download
raw
3.53 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The admin SPA's setupLoginForm in winebox/admin/static/js/admin.js (git HEAD, line ~485, POSTs username/password to /api/auth/login) targets this Enforcer, but non-Python files are absent from the analysed checkout, so it cannot be cited; otherwise the caller is outside the repo (scripts/ are dev utilities)."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "admin_login",
"file": "winebox/admin/routers/auth.py",
"lines": "26",
"notes": "Reached from the Subject's POST /api/auth/login; router mounted at winebox/admin/main.py:82. admin_login refuses with 401 on any credential failure (lines 44-55) and 403 for non-admins, and is also the Verification manager (same method)."
},
{
"role": "Verification manager",
"status": "present",
"symbol": "admin_login",
"file": "winebox/admin/routers/auth.py",
"lines": "26",
"notes": "Same method as the Enforcer: admin_login collects the form username/password, fetches the user via rs.users.get_by_email (line 43) and calls rs.password_hasher.verify (line 48) inline, with regstack lockout check/record (lines 32, 51)."
},
{
"role": "Password store",
"status": "external",
"symbol": "get_by_email",
"file": "winebox/admin/routers/auth.py",
"lines": "43",
"notes": "Called by admin_login (Verification manager) at auth.py:43; regstack's user repository (MongoDB users collection configured in winebox/auth/regstack_setup.py:59 _build_config) returns the user with hashed_password."
},
{
"role": "Hasher",
"status": "external",
"symbol": "verify",
"file": "winebox/admin/routers/auth.py",
"lines": "48",
"notes": "One call covers Hasher and Comparator: rs.password_hasher.verify (regstack.auth.password.PasswordHasher, Argon2id per winebox/services/auth.py:12/36) re-hashes the password with the stored salt/params, called from admin_login at auth.py:48. Hasher instance is built inside RegStack (regstack_setup.py:95)."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper/secret is mixed into password hashing on the admin_login path or anywhere in winebox/ (grep 'pepper' empty); regstack_jwt_secret is only the JWT signing key, not a pepper."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The Argon2id hash from verify (auth.py:48) is not encrypted with any key; no encryption step exists on the verification path."
},
{
"role": "Comparator",
"status": "external",
"symbol": "verify",
"file": "winebox/admin/routers/auth.py",
"lines": "48",
"notes": "Same call as the Hasher: regstack PasswordHasher.verify (Argon2id) compares the recomputed hash to user.hashed_password and returns bool; admin_login (auth.py:48) rejects on False."
},
{
"role": "System",
"status": "external",
"symbol": "encode",
"file": "winebox/admin/routers/auth.py",
"lines": "63",
"notes": "Success branch of admin_login (Enforcer) after verification: clears lockout (line 62) and issues a session JWT via regstack's rs.jwt.encode at auth.py:63, returned as the bearer token."
}
]
}

Xet Storage Details

Size:
3.53 kB
·
Xet hash:
17b2e7bc2113a9e389963c196a6604a046b30d9cbfd6c530bc23f0286c193896

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.