Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /limit_request_rate /Helevon-Technologies-LTD_fabiplus.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Entity", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Requests come from external HTTP clients outside the repo; no in-repo client targets RateLimitMiddleware (only tests, which do not count)." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "dispatch", | |
| "file": "fabiplus/middleware/security.py", | |
| "lines": "272", | |
| "notes": "dispatch of RateLimitMiddleware (fabiplus/middleware/security.py:262) intercepts each request, derives the client IP via _get_client_ip (line 301) and returns a 429 JSONResponse (line 291) or forwards via call_next (line 299). Caveat: this framework middleware is opt-in and is NOT registered in _setup_middleware (fabiplus/core/app.py:91, which adds only CORS/Security/Logging/Activity middleware); unwired lookalikes are CustomAuthMiddleware.__call__ (fabiplus/core/custom_auth.py:105) and MediaSecurityMiddleware.dispatch (fabiplus/core/media/middleware.py), also never registered." | |
| }, | |
| { | |
| "role": "Limiter", | |
| "status": "present", | |
| "symbol": "dispatch", | |
| "file": "fabiplus/middleware/security.py", | |
| "lines": "272", | |
| "notes": "The allow/block decision is made inline in the Enforcer's dispatch (security.py:282-297): it counts the client's timestamps in the last 60 s and blocks when len >= requests_per_minute; Enforcer and Limiter are the same method. _cleanup_old_requests (line 314) only prunes history and does not decide." | |
| }, | |
| { | |
| "role": "HistoryProvider", | |
| "status": "present", | |
| "symbol": "requests", | |
| "file": "fabiplus/middleware/security.py", | |
| "lines": "270", | |
| "notes": "In-memory dict self.requests (client IP -> list of request timestamps), read and updated inline by dispatch (security.py:283, 295, 297) and pruned by _cleanup_old_requests (line 314); no dedicated getter method exists, so the field is cited. Not shared across processes (comment says 'use Redis in production')." | |
| }, | |
| { | |
| "role": "PolicyProvider", | |
| "status": "present", | |
| "symbol": "requests_per_minute", | |
| "file": "fabiplus/middleware/security.py", | |
| "lines": "269", | |
| "notes": "Policy is the constructor parameter requests_per_minute (default 60) stored on the instance and read by dispatch at security.py:290, with a fixed 60 s window; no method supplies the policy, so the field is cited. Settings RATE_LIMITING_ENABLED / RATE_LIMIT_PER_MINUTE (fabiplus/conf/settings.py:61,64) exist but are never read." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "FABI+ is a framework and RateLimitMiddleware is not registered in any in-repo app (create_app/_setup_middleware in fabiplus/core/app.py:91 does not add it), so no in-repo handler is demonstrably reached via call_next (security.py:299); per rule 6.1.7 System is missing." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 2.99 kB
- Xet hash:
- 61c37e23ed5d6a416455cacb639e2077f8781a77de0f1077998eb38f9942247c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.