Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /authentication_pwd /fdev31_wirikiki.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The web client (src/main/index.js, which POSTs username/password to /token in git HEAD) is deleted from the working tree; only Python sources remain on disk, so the caller is outside the analysed repo. Tests were not counted." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "_login_for_access_token", | |
| "file": "wirikiki/authentication.py", | |
| "lines": "78", | |
| "notes": "POST /token route registered by init (wirikiki/authentication.py:77, wired via auth_init(app) at wirikiki/routes.py:130) receives OAuth2PasswordRequestForm username/password and raises credentials_exception on failure (line 93). Verification is inline, so it is also the Verification manager." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "_login_for_access_token", | |
| "file": "wirikiki/authentication.py", | |
| "lines": "78", | |
| "notes": "Same method as the Enforcer (inline decision): at line 86 it calls make_password(form_data.password) and fetches the stored hash via db.get(form_data.username) from get_user_db (injected via Depends at line 80). Anonymous login bypasses the check when allow_anonymous is set." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "get_user_db", | |
| "file": "wirikiki/authentication.py", | |
| "lines": "29", | |
| "notes": "Reached from _login_for_access_token via Depends(get_user_db) (authentication.py:80) and db.get(...) at line 86. Loads 'user hash' lines from the users.db file (USERS path, configuration.py:27) into the in-memory dict _user_db." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "sha512", | |
| "file": "wirikiki/authentication.py", | |
| "lines": "73", | |
| "notes": "Verification manager calls make_password (authentication.py:71) at line 86, a thin wrapper that calls hashlib.sha512(cfg salt + password).hexdigest() at line 73. Unsalted per-user; uses a single global 'salt' from config [users].salt." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the verification path. The only extra secret is the global cfg['users']['salt'] (settings.toml [users].salt) prepended in make_password (authentication.py:72); it is named and used as a hash salt, not as a separate pepper key, so it was not mapped." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of the password hash in make_password (authentication.py:71-73) or _login_for_access_token; only SHA-512 hashing. jose jwt.encode (line 21) signs the issued token and is not an Encrypter of the hash." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "present", | |
| "symbol": "_login_for_access_token", | |
| "file": "wirikiki/authentication.py", | |
| "lines": "78", | |
| "notes": "The comparison is inline in _login_for_access_token at line 86: make_password(form_data.password) == db.get(form_data.username), plain (non-constant-time) string equality; no smaller helper method exists." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "create_access_token", | |
| "file": "wirikiki/authentication.py", | |
| "lines": "13", | |
| "notes": "On success the Enforcer _login_for_access_token calls create_access_token at authentication.py:88, which issues a HS256 JWT (jose jwt.encode, line 21) returned as bearer token." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.7 kB
- Xet hash:
- 74e1215775cbc582847246ca8cdcdd4e059edf1075e769d81af4179e13bc0e14
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.