feat(tradein/domclick): cookie-injection MVP для обхода QRATOR-блока (#2000) #2433
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#2433
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-domclick-cookie-injection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
domclick_session_cookies(миграция 174) +app/services/domclick_session.py— зеркалит существующийcian_session.py(pgp_sym_encrypt,account_cas_idвместоaccount_user_id), безverify_session(требует реального browser-фетча — future enhancement).POST /scrape/domclick/upload-cookies— ручная загрузка (зеркалитupload_cian_cookies).POST /scrape/domclick/debug/detail-fetch— единственный сейчас живой путь прогнать связку session→cookies→fetch_detail (боевой backfill-оркестратор для DomClick ещё не смёржен, issue #2000).source="domclick"— выделенный резидентный прокси-пул (id=1), построенный и verified в этой же сессии._assert_domclick_host— SSRF-guard для*.domclick.ruподдоменов.server.py/browser_fetcher.py:cookies-параметр расширяет origin-механизм (#2430) той же схемой — keyword-only, defaultNone→ byte-identical для avito/cian/yandex. Домен cookie выводится из hostname целевого URL (провайдер-агностично).Test plan
test_domclick_admin_apis.py+test_domclick_session.py+test_domclick_detail.py: 60 passedtest_kit_browser_fetcher_proxy_pool.py+test_cian_session.py(regression): 37 passedtradein-mvp/browser/suite: 85 passed, 4 pre-existing failures (verified independently against clean main — unrelated_ensure_browser(proxy_override=...)signature drift)test_search_cache_hit)Refs #2000 — cookie-injection снимает механизм обхода QRATOR, но боевой backfill-оркестратор (dormant-ветка
feat/tradein-domclick-detail-backfill) остаётся отдельным шагом.