<#1314 fix(deps): cap pyqwest &lt;0.7.0 to preserv...
# flyte-github
a
#1314 fix(deps): cap pyqwest <0.7.0 to preserve default TLS trust Pull request opened by jeevb Problem Installing flyte-sdk from
main
(or any fresh
pip install
) currently fails all ConnectRPC/HTTPS calls with:
Copy code
invalid peer certificate: UnknownIssuer
Root cause:
pyqwest
0.7.0 was published 2026-07-19 and flipped
tls_include_system_certs
to default
False
. A client built with
tls_ca_cert=None
(the default secure path in
_session.py
) now gets an empty trust store and rejects every peer — including public CAs. Nothing pins pyqwest: it's pulled transitively through
connectrpc
, which only requires
pyqwest>=0.5.1
(uncapped). So fresh installs float onto 0.7.0 and break. Existing environments that resolved 0.6.2 (published 2026-06-15) still work because ≤0.6.2 trusts the system store by default.
Note:
uv
-based installs on
main
are shielded by
uv.lock
+
[tool.uv] exclude-newer
, so this bites
pip
-style transitive resolution specifically.
Fix Pin
pyqwest
as a direct dependency (justified —
_session.py
does
import pyqwest
) and cap it below the breaking release: "pyqwest>=0.5.1,<0.7.0",
uv.lock
pyqwest pin bumped
0.5.1 → 0.6.2
(latest known-good). Verification •
uv lock --check
under CI-pinned uv 0.9.21 → passes •
uv run --frozen
resolves pyqwest 0.6.2 •
tests/flyte/remote/test_session.py
→ 28 passed Follow-up This is the interim unblock. A separate PR will bump pyqwest past 0.7.0 with the necessary TLS trust fix (restoring both public and enterprise/OS CA-root trust). flyteorg/flyte-sdk