fix(cadastre): NSPDBulkClient verify=False for NSPD self-signed CA chain (#168) #175
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#175
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/nspd-bulk-client-ssl"
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
SSL: CERTIFICATE_VERIFY_FAILED self-signed certificate in certificate chainFix
Добавлено
verify=Falseвhttpx.AsyncClient(...)с inline комментарием.Existing precedent
app/services/scrapers/nspd_lite.py:55используетssl._create_unverified_context()для exact same reason (since April 2026). Просто переносим pattern на httpx.Risk profile
Test plan
__aenter__to passverify=Falsecad_parcels,cad_buildings,cad_constructions,cad_zouitдолжны заполнитьсяReview
CI зелёный (backend 1m13s + frontend 1m28s). Diff минимальный: +6 строк в
backend/app/scrapers/nspd_bulk_client.py(5 комментарий +verify=False).Cross-check (agent):
self._clientприватен кNSPDBulkClient, создаётся в__aenter__, закрывается в__aexit__, используется только в_get_jsonдля NSPD URLs. Не утекает наружу, в другие httpx pools не бьёт.backend/app/services/scrapers/nspd_lite.py:55—_SSL_CTX = ssl._create_unverified_context()глобально для NSPD с апреля 2026. Pattern already in prod.disable_warnings()не нужен, оставляем видимым.Никаких блокеров. Hardcoded
verify=Falseсовпадает с precedent; env-flag можно добавить позже когда NSPD починят CA chain, gold-plating для hotfix.approve merge