Skip to content

chore(deps): bump ureq from 2.12.1 to 3.5.1 - #4994

Merged
KuSh merged 4 commits into
developfrom
dependabot/cargo/develop/ureq-3.5.0
Nov 12, 2026
Merged

KuSh merged 4 commits into
developfrom
dependabot/cargo/develop/ureq-3.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Bumps ureq from 2.12.1 to 3.5.1.

Changelog

Sourced from ureq's changelog.

3.5.1

  • Bump ureq-proto to 0.7.1 (fixes to connection reuse and transfer encoding) #1224
  • Send only cookie names and values in request Cookie headers #1222
  • Preserve readable responses after macOS rejects timeout changes on closed sockets #1220

3.5.0

  • Prepare 3.5.0 and fix dependency advisories and warnings - #1217
  • Add Agent::shutdown() to interrupt requests in flight and close all connections #1211
  • Preserve validated request header casing with RequestBuilder::header_raw #1214
  • Decode proxy URL credentials once; literal percent signs must be escaped as %25 #1215
  • Encode ProxyBuilder credentials and preserve colons in proxy passwords #1215
  • Apply remaining timeout budgets to SOCKS setup and drop the socks dependency #1209
  • Check NO_PROXY before resolving a SOCKS proxy, so excluded hosts connect directly #1209
  • Clarify timeout budgets, phase boundaries, and proxy DNS #1213
  • Bound TLS handshake I/O by the remaining connect/global timeout #1208
  • Retry socket reads interrupted by EINTR when timeout (technically breaking) #1205
  • Fix native-tls-no-default enabling dependencies without enabling the TLS connector
  • Add timeout_per_read and timeout_per_write independently of total phase budgets

3.4.3

  • Update TLS dependencies for security fixes #1218

3.4.2

  • Bump ureq-proto to 0.6.3 (fixes network-path references in redirects)
  • Bypass pooling for request connection settings incompatible with the Agent #1201
  • Try the next resolved address on unreachable/unavailable connect errors #1195

3.4.1

  • Bump ureq-proto to 0.6.2 (fixes to parsing and headers) #1199
  • Do not pool connections with unconsumed buffered input #1198
  • Fix timeout budgets restarting and applying to later phases #1194
  • Complete TLS handshake during connect so timeout_connect covers it #1193
  • Speed up read_json for responses with a known, small body size #1191

3.4.0

  • Seal RequestExt (technically breaking) #1189
  • Send canonical Basic authentication scheme to CONNECT proxies #1185
  • Establish target TLS through HTTPS CONNECT proxies #1183
  • Update rustls-platform-verifier to 0.7.0 #1174
  • Fix pooled connections never aging out according to max_idle_age #1172
  • Strip brackets from IPv6-literal hosts before TLS SNI/ServerName #1171
  • RequestExt::middleware_config for conf inside middleware #1169

3.3.0

... (truncated)

Commits
  • 33ca9d3 3.5.1
  • d1b194c Bump ureq-proto to 0.7.1
  • 81d1b40 Bump ureq-proto to 0.7.0
  • 0cbee9a docs: clarify body read limit defaults (#1223)
  • f92baae Send only cookie names and values in the Cookie header
  • f60896d Preserve readable responses after macOS timeout setter failures
  • 1bd534e Fix changelog
  • fee0ad2 Prepare 3.5.0 and fix dependency advisories and warnings
  • 7de0ab7 Remove realtime dependencies from tests
  • 3f18f90 Add Agent::shutdown() for active and pooled connections
  • Additional commits viewable in compare view

@rtk-wshm-sync-bot

Copy link
Copy Markdown

wshm · Automated triage by AI

📊 Automated PR Analysis

🔧 Type chore
🟡 Risk medium

Summary

This PR is a Dependabot automated update that bumps the ureq HTTP client crate from 2.12.1 to 3.5.0, a major version upgrade bringing new features (Agent::shutdown), timeout/proxy handling fixes, and dependency changes (swapping url for http/httparse, bumping rustls and webpki-roots). The Cargo.lock diff shows transitive dependency churn including removal of several icu_* and related crates and addition of ureq-proto, http, httparse, bytes, and utf8-zero.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Analyzed automatically by wshm · This is an automated analysis, not a human review.

Copilot AI requested a review from KuSh November 7, 2026 11:40
@dependabot dependabot Bot changed the title chore(deps): bump ureq from 2.12.1 to 3.5.0 chore(deps): bump ureq from 2.12.1 to 3.5.1 Nov 8, 2026
@dependabot
dependabot Bot force-pushed the dependabot/cargo/develop/ureq-3.5.0 branch from 1739021 to 3e99095 Compare November 8, 2026 11:23
@KuSh

KuSh commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

@dependabot rebase

Bumps [ureq](https://github.com/algesten/ureq) from 2.12.1 to 3.5.1.
- [Changelog](https://github.com/algesten/ureq/blob/main/CHANGELOG.md)
- [Commits](algesten/ureq@2.12.1...3.5.1)

---
updated-dependencies:
- dependency-name: ureq
  dependency-version: 3.5.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/develop/ureq-3.5.0 branch from 3e99095 to 31f2ccf Compare November 8, 2026 18:53
@KuSh

KuSh commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

@copilot fix the CI errors

@CLAassistant

CLAassistant commented Nov 11, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Copilot AI commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

@copilot fix the CI errors

Updated the ureq 3 call sites, including request timeouts and error-response handling. Workspace check, Clippy, tests, and formatting pass. Commit: 546e9df. CodeQL timed out during review.

@dependabot @github

dependabot Bot commented on behalf of github Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

A newer version of ureq exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

KuSh and others added 2 commits November 12, 2026 03:21
…ureq 3

The ureq 3 migration sent a literal placeholder instead of the
classifier's bearer key. ureq 3 also reads HTTP_PROXY/HTTPS_PROXY/
ALL_PROXY, which ureq 2 did not: a proxy cannot reach this machine, so
the llm-proxy health check, rtk task through the local daemon and a
local classifier failed whenever a proxy was set. And ureq 3 has no
default connect timeout, so a blackholed host could hang a call.

core::http sets timeouts per request instead of building an Agent per
call, connects to localhost and loopback directly, and calls to RTK's
own daemon never use a proxy. Remote hosts follow the proxy variables;
the module documents the limits of that path (CONNECT tunnels for
http:// targets, task's substring daemon match, no SOCKS, how ureq
reads the variables). Every request gets back ureq 2's 30s connect
cap. Bodies are read as ureq 2's into_string did: at most 10 MiB once
decompressed (ureq 3's own limit counts the bytes on the wire), invalid
UTF-8 decoded lossily whatever the content type, JSON parsed from that
text. Requests send JSON with send_json, and the health check caps the
body it reads at 64 KiB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@KuSh

KuSh commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Pushed a follow-up commit on top of the ureq 3 migration:

  • The classifier request sent a literal ****** as its bearer token: it now sends Bearer <key> again, with a test that checks the header on the wire.
  • ureq 3 reads HTTP_PROXY/HTTPS_PROXY/ALL_PROXY (ureq 2 as built here never did). Requests to localhost/loopback/0.0.0.0 and every call to the daemon rtk locates itself (health check, rtk task through the daemon) now connect directly, so a proxy no longer breaks them. Remote hosts follow the proxy variables.
  • ureq 3 has no default connect timeout: every request gets back the 30 s connect cap ureq 2 applied.
  • Bodies are read the way ureq 2's into_string did: at most 10 MiB once decompressed (ureq 3's own limit counts the bytes on the wire, so a small gzip body could inflate far past it), invalid UTF-8 decoded lossily whatever the content type, and worker/classifier JSON parsed from that text.
  • Timeouts are set per request instead of building an Agent per call; requests send JSON with send_json (the json feature adds no compiled crate, the extra Cargo.lock entries are cargo listing weak optional deps); the health check caps its body at 64 KiB.

Known limitations of the proxy path, documented in src/core/http.rs: ureq tunnels http:// targets through CONNECT (a plain-HTTP server on another machine needs a NO_PROXY entry), rtk task's daemon detection is a substring match on the base URL, SOCKS proxies are not supported, and ureq takes the first of ALL_PROXY/HTTPS_PROXY/HTTP_PROXY for every scheme and matches NO_PROXY entries as written (no trimming, no CIDR).

@KuSh
KuSh merged commit 049c202 into develop Nov 12, 2026
22 checks passed
@KuSh
KuSh deleted the dependabot/cargo/develop/ureq-3.5.0 branch November 12, 2026 02:40
@rtk-release-bot rtk-release-bot Bot mentioned this pull request Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants