Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /session_based_access_control /theonlyamos_runit-server.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The caller is an outside browser holding the Starlette session cookie; the repo ships no templates/JS that post to /databases/documents/ (searched *.html/*.js), and tests do not count." | |
| }, | |
| { | |
| "role": "Authentication enforcer", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Signed client-side cookie session (Starlette SessionMiddleware, runit_server/app.py:81), which RECOVERY_PLAN section 6 treats as self-contained like a JWT, so this role is missing. The lookalike guard is get_session (runit_server/common/security.py:53), installed on the /databases router at routers/database.py:38, which only checks 'user_id' in the decoded cookie." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Missing: there is no server-side session lookup. get_session (runit_server/common/security.py:53) checks 'user_id' in request.session, and SessionMiddleware (runit_server/app.py:81) validates the itsdangerous signature/max_age. Under section 6 this is a self-contained signed cookie, not an opaque session id." | |
| }, | |
| { | |
| "role": "Session manager", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Missing: there is no server-side store of open sessions. Session data lives in a signed cookie handled by Starlette SessionMiddleware (runit_server/app.py:81) and read by get_session (runit_server/common/security.py:53); login writes it at routers/public.py:235." | |
| }, | |
| { | |
| "role": "Authorisation enforcer", | |
| "status": "present", | |
| "symbol": "create_user_document", | |
| "file": "runit_server/routers/database.py", | |
| "lines": "168", | |
| "notes": "Route handler on the /databases router reached after get_session (database.py:38); it only performs the document insert if the database belongs to the session user, otherwise flashes 'Error performing operation' (database.py:184)." | |
| }, | |
| { | |
| "role": "Decider", | |
| "status": "present", | |
| "symbol": "create_user_document", | |
| "file": "runit_server/routers/database.py", | |
| "lines": "168", | |
| "notes": "Same method as the Authorisation enforcer: the ownership decision `db and db.user_id == user_id` is inline at database.py:171 (no helper). Admin role/permission models (models/role.py, permission.py) exist but are never checked on any route." | |
| }, | |
| { | |
| "role": "Policy provider", | |
| "status": "present", | |
| "symbol": "get", | |
| "file": "runit_server/routers/database.py", | |
| "lines": "170", | |
| "notes": "Called by the Decider create_user_document at database.py:170 (Database.get, inherited from odbms Model) to fetch the Database record whose user_id field (declared in runit_server/models/database.py:27) is the ownership policy." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "create_user_document", | |
| "file": "runit_server/routers/database.py", | |
| "lines": "168", | |
| "notes": "Success branch of create_user_document (database.py:172-180) inserts the document into the user's collection via Collection(**data).save() at database.py:177 after the ownership check passes; no separate in-repo method carries the action." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.46 kB
- Xet hash:
- c7a436aa9dbc9474cdba7e1f140051c06106278aeaae39f7d0296369547f0fdc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.