diff --git a/backend/app/scrapers/nspd_bulk_client.py b/backend/app/scrapers/nspd_bulk_client.py index f44dbeb7..b51ba3e3 100644 --- a/backend/app/scrapers/nspd_bulk_client.py +++ b/backend/app/scrapers/nspd_bulk_client.py @@ -114,10 +114,16 @@ class NSPDBulkClient: self._client: httpx.AsyncClient | None = None async def __aenter__(self) -> NSPDBulkClient: + # NSPD prod chain contains a self-signed/internal CA on Beget VPS → + # default verify trips CERTIFICATE_VERIFY_FAILED. Existing legacy + # client (app.services.scrapers.nspd_lite) uses unverified context + # for the same reason — reuse pattern. Risk OK: public gov data, + # no sensitive payload, X-Admin-Token не уходит к NSPD. self._client = httpx.AsyncClient( headers=self._headers, timeout=self._timeout, follow_redirects=True, + verify=False, ) return self