AnonymousSpottedToad/securityPatternsRecovery / ground_truth /python /authentication_pwd__Nostalgia-Season-Train_DesksetBack.json
| { | |
| "role_mappings": [ | |
| { | |
| "patternRole": "Subject", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The caller of POST /v0/access/note/login is the external Obsidian NoteAPI plugin (NodeJS, header Sec-Deskset-NoteAPI) and lives outside this repo; no in-repo client sends username/password to login (src/deskset/router/unify/access.py:119).", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Enforcer", | |
| "entity": "login", | |
| "file": "src/deskset/router/unify/access.py", | |
| "lines": "119", | |
| "notes": "FastAPI route handler POST /v0/access/note/login on router_access (registered in src/deskset/main.py:242) receives OAuth2PasswordRequestForm username/password and raises HTTPException 400 on mismatch, returning the notetoken only on success. Same handler is also Verification manager and Comparator (inline logic); a near-duplicate login exists at src/deskset/router/note/obsidian/_manager.py:219.", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Verification manager", | |
| "entity": "login", | |
| "file": "src/deskset/router/unify/access.py", | |
| "lines": "119", | |
| "notes": "Same method as the Enforcer (access.py:119): it collects form.username/form.password and fetches config.username/config.password (access.py:132-134) inline; no separate verify helper exists.", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Password store", | |
| "entity": "password", | |
| "file": "src/deskset/core/config.py", | |
| "lines": "201", | |
| "notes": "Reached from login at access.py:134 via config.password; the property returns ValidateConfig.password loaded from the YAML config file (default random string at config.py:37). Caveat: the password is stored in plaintext, not as a hash.", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Hasher", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "login (access.py:134) compares the submitted password in plaintext against config.password; no hashing on the verification path. The hmac/sha256 in _generate_token (access.py:45) only derives a random session token, not a password hash.", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Pepper store", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper value exists; searched access.py, core/config.py and the obsidian _manager.py login. The os.urandom key in _generate_token (access.py:50) is a token-generation key, not a pepper.", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Encrypter", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of a password hash on the login path (access.py:119-137); the HMAC in _generate_token (access.py:55) is for token generation only.", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Comparator", | |
| "entity": "login", | |
| "file": "src/deskset/router/unify/access.py", | |
| "lines": "119", | |
| "notes": "Comparison is inline in login (same method as Enforcer/Verification manager): `form.password != config.password` at access.py:134 (and username at 132), a plain non-constant-time string comparison of plaintext values.", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "System", | |
| "entity": "notetoken", | |
| "file": "src/deskset/router/unify/access.py", | |
| "lines": "66", | |
| "notes": "On success login returns access.notetoken (access.py:137); the notetoken property of Access (access.py:66) yields the token generated by _generate_token, used by the Obsidian WebSocket RPC (_manager.py:174).", | |
| "status": "present", | |
| "nodeId": null | |
| } | |
| ], | |
| "interaction_order": { | |
| "available": true, | |
| "language": "python", | |
| "repo": "Nostalgia-Season-Train_DesksetBack", | |
| "reason": "", | |
| "entryRole": "Enforcer", | |
| "entryRule": "behaviour", | |
| "interactions": [ | |
| { | |
| "rank": 1, | |
| "interaction": "Enforcer \u2192 Verification manager", | |
| "from": "Enforcer", | |
| "to": "Verification manager", | |
| "file": "src/deskset/router/unify/access.py", | |
| "line": 119, | |
| "via": [], | |
| "mechanism": "co-located", | |
| "path": [], | |
| "parent": "" | |
| }, | |
| { | |
| "rank": 2, | |
| "interaction": "Verification manager \u2192 Comparator", | |
| "from": "Verification manager", | |
| "to": "Comparator", | |
| "file": "src/deskset/router/unify/access.py", | |
| "line": 119, | |
| "via": [], | |
| "mechanism": "co-located", | |
| "path": [], | |
| "parent": "" | |
| } | |
| ], | |
| "anchoredRoles": [ | |
| { | |
| "role": "Comparator", | |
| "kind": "METHOD" | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "kind": "METHOD" | |
| }, | |
| { | |
| "role": "Hasher", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Password store", | |
| "kind": "METHOD" | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "kind": "METHOD" | |
| } | |
| ], | |
| "skippedRoles": [ | |
| "Subject", | |
| "System" | |
| ] | |
| } | |
| } |
Xet Storage Details
- Size:
- 5.35 kB
- Xet hash:
- b7e4884d8573f7e3fa48d79900cd80569da46fece5eb82632fa4485986a66f8a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.