🌊 Волна 14: backend #6 — security + БД (8 багов + бонус)
Security: - cf_connecting_ip_spoof: whitelist CF_IPS, доверие только от Cloudflare (config.py + main.py) БД: - get_pool_race: asyncio.Lock вокруг create_pool (database.py) - init_db_no_transaction: обёрнут в conn.transaction() (database.py) - drop_constraint_cascade: убран CASCADE (database.py) - add_pk_on_duplicates: DELETE дублей перед ADD PK (database.py) - redundant_index_users_telegram: удалены дубли индексов (database.py) - fstring_sql_migration: whitelist regex (database.py) Качество: - cleanup_task_not_cancelled: cancel в shutdown (main.py) Бонус: - removed_images: обработка удалённых картинок в feed.py (TODO из v1) Пропущено осознанно: - matview_if_not_exists_stale (Alembic, отдельно) - initdata_in_query_param (fallback для deleteFeedPost) Аудит v3: Issue #6, backend 8/10 задач
This commit is contained in:
+901
-857
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user