Lukas
17e5a551e1
feat: migrate to Pydantic V2 and implement rate limiting middleware
- Migrate settings.py to Pydantic V2 (SettingsConfigDict, validation_alias)
- Update config models to use @field_validator with @classmethod
- Replace deprecated datetime.utcnow() with datetime.now(timezone.utc)
- Migrate FastAPI app from @app.on_event to lifespan context manager
- Implement comprehensive rate limiting middleware with:
* Endpoint-specific rate limits (login: 5/min, register: 3/min)
* IP-based and user-based tracking
* Authenticated user multiplier (2x limits)
* Bypass paths for health, docs, static, websocket endpoints
* Rate limit headers in responses
- Add 13 comprehensive tests for rate limiting (all passing)
- Update instructions.md to mark completed tasks
- Fix asyncio.create_task usage in anime_service.py
All 714 tests passing. No deprecation warnings.
2025-10-23 22:03:15 +02:00
..
2025-10-12 23:17:20 +02:00
2025-10-22 11:30:04 +02:00
2025-10-14 21:53:41 +02:00
2025-10-19 18:08:35 +02:00
2025-10-23 22:03:15 +02:00
2025-10-23 22:03:15 +02:00
2025-10-23 21:00:34 +02:00
2025-10-17 20:05:57 +02:00
2025-10-14 21:43:48 +02:00
2025-10-17 20:26:40 +02:00
2025-10-19 17:21:31 +02:00
2025-10-23 22:03:15 +02:00
2025-10-23 22:03:15 +02:00
2025-10-23 21:00:34 +02:00
2025-10-23 22:03:15 +02:00
2025-10-23 22:03:15 +02:00
2025-10-23 19:00:49 +02:00
2025-10-23 21:00:34 +02:00
2025-10-23 21:00:34 +02:00
2025-10-12 23:33:56 +02:00
2025-10-22 09:20:35 +02:00
2025-10-13 00:18:46 +02:00
2025-10-23 21:00:34 +02:00
2025-10-17 11:12:06 +02:00
2025-10-23 22:03:15 +02:00
2025-10-23 21:00:34 +02:00
2025-10-17 19:13:37 +02:00
2025-10-22 09:20:35 +02:00
2025-10-17 12:01:22 +02:00
2025-10-21 19:42:39 +02:00
2025-10-17 10:59:53 +02:00