Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary_without_sequence /mappings /python /authentication_pwd /BilgisayarKavramlari_cadelphi.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The login form template admin_login.html rendered by admin_login_page (cadelphi/app.py:327) is not in the repository (no cadelphi/templates directory), so no in-repo client code that posts the credentials exists; the caller is an outside browser user." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "admin_login", | |
| "file": "cadelphi/app.py", | |
| "lines": "333", | |
| "notes": "POST /admin/login handler (registered at cadelphi/app.py:332) receives username/password form fields, looks up AdminSettings and calls verify_password at app.py:351, returning 401 on failure. It is also the Verification manager and System (login success branch). Later admin routes gate on the resulting signed-cookie session flag via _require_admin (app.py:371)." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "admin_login", | |
| "file": "cadelphi/app.py", | |
| "lines": "333", | |
| "notes": "Same method as the Enforcer: admin_login inline fetches the stored hash via the AdminSettings query (app.py:350) and passes password + settings.password_hash to verify_password (cadelphi/security.py:16) at app.py:351. verify_password is a thin wrapper forwarding to passlib CryptContext.verify." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "AdminSettings", | |
| "file": "cadelphi/models.py", | |
| "lines": "95", | |
| "notes": "Reached from admin_login's query select(AdminSettings).where(admin_username == username) at cadelphi/app.py:350; the SQLAlchemy model/table admin_settings stores admin_username and password_hash (models.py:100). Cited as class because the query is inline with no store method." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "cadelphi/security.py", | |
| "lines": "18", | |
| "notes": "verify_password (security.py:16, called from admin_login app.py:351) calls passlib CryptContext.verify, which rehashes the password with Argon2 using the stored salt; the same call also covers the Comparator. CryptContext(schemes=[\"argon2\"]) is configured at security.py:9." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper value exists; searched cadelphi/ for pepper/hmac/secret usage on the verification path. The Argon2 salt is not a pepper, and CADELPHI_SECRET_KEY (app.py:48) only signs the session cookie." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "verify_password (cadelphi/security.py:16) only does an Argon2 hash verify; no encryption of the hash with a pepper key occurs anywhere in cadelphi/." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "cadelphi/security.py", | |
| "lines": "18", | |
| "notes": "Reached from admin_login (app.py:351) via verify_password (security.py:16); passlib CryptContext.verify (Argon2 handler) compares the recomputed hash with the stored one and returns bool. One call covers both Hasher and Comparator; ValueError is mapped to False." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "admin_login", | |
| "file": "cadelphi/app.py", | |
| "lines": "333", | |
| "notes": "Success branch of admin_login sets request.session[\"admin_authenticated\"] = True (app.py:361) and redirects to admin_dashboard (app.py:362, defined at app.py:409). Same method as Enforcer/Verification manager." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.77 kB
- Xet hash:
- b2bcc0dfe48afd502641931cccacfb712986b5918eef97b2c8667bc8abaa42c0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.