Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /limit_request_rate /Saturn99X_Etherion.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Entity", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The requesting client is outside the repo (web frontend not in repo). tui-pkg/etherion_tui is an empty package and etherion/cli only probes infrastructure endpoints; no in-repo client calls the rate-limited API such as /api/tui/auth/login." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "process_request", | |
| "file": "src/middleware/security_integration.py", | |
| "lines": "59", | |
| "notes": "SecurityManager.process_request is installed as HTTP middleware via secure_request_handler (security_integration.py:462), registered by app.middleware(\"http\")(secure_request_handler) at src/etherion_ai/app.py:190. It classifies the path into an endpoint_type, calls check_rate_limit (security_integration.py:128) and returns a 429 JSONResponse when the limiter raises, otherwise calls call_next." | |
| }, | |
| { | |
| "role": "Limiter", | |
| "status": "present", | |
| "symbol": "check_rate_limit", | |
| "file": "src/middleware/rate_limiter.py", | |
| "lines": "81", | |
| "notes": "Called by the Enforcer at security_integration.py:128. It derives the client id (get_client_identifier, rate_limiter.py:56, SHA-256 of IP+User-Agent), loads the policy, increments per-minute and per-hour counters and raises HTTPException 429 when either limit is exceeded; fails open on Redis errors and is bypassed when DEV_BYPASS_AUTH=1." | |
| }, | |
| { | |
| "role": "HistoryProvider", | |
| "status": "present", | |
| "symbol": "incr", | |
| "file": "src/core/redis.py", | |
| "lines": "274", | |
| "notes": "check_rate_limit calls redis_wrapper.incr(minute_key/hour_key) at rate_limiter.py:142 and :152 (with expire), using keys built by get_rate_limit_key (rate_limiter.py:76). RedisClient.incr wraps redis INCRBY; the counters themselves live in the external Redis server." | |
| }, | |
| { | |
| "role": "PolicyProvider", | |
| "status": "present", | |
| "symbol": "RATE_LIMIT_CONFIG", | |
| "file": "src/middleware/rate_limiter.py", | |
| "lines": "23", | |
| "notes": "check_rate_limit looks up the policy inline with RATE_LIMIT_CONFIG.get(endpoint_type, default) at rate_limiter.py:113, then applies RATE_LIMIT_PER_MINUTE/HOUR env overrides for auth_endpoints and custom_limits. No dedicated method exists, so the config dict constant is cited." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "tui_login", | |
| "file": "src/etherion_ai/app.py", | |
| "lines": "390", | |
| "notes": "Example protected handler reached via call_next (security_integration.py:154) after the rate-limit check passes: POST /api/tui/auth/login performs email/password login and returns a JWT. All other routes (GraphQL at app.py:315, /oauth/* handlers) are guarded the same way." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 2.88 kB
- Xet hash:
- b2484e7b08e8e041a585b783e1250557da5e4ad41ca153b258439c477000258c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.