Skip to content

chore(deps): Bump async-nats from 0.52.0 to 0.53.0 in /rsworkspace - #410

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/rsworkspace/async-nats-0.53.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/rsworkspace/async-nats-0.53.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor

Bumps async-nats from 0.52.0 to 0.53.0.

Release notes

Sourced from async-nats's releases.

Release async-nats/v0.53.0

Overview

This release fixes security issues in how the client decides to use TLS and which servers it takes from the cluster. Some fixes change how the client connects: read the breaking and behaviour changes before upgrading.

Added

  • ConnectOptions::tls_optional (#1686), ConnectOptions::tls_server_name and ConnectOptions::verify_discovered_servers_by_ip (#1687)

Fixed

Changed

Breaking changes

  • New Configuration variants of ConnectErrorKind and SetServerPoolErrorKind, and a public field ServerInfo::tls_available. Exhaustive matches need a new arm, ServerInfo literals need ..Default::default() (#1686)
  • A server without TLS where TLS is asked for, or a certificate not valid for the expected name, is a Tls error, not Io. For the name check, the io::Error is one source() deeper (#1686, #1687)
  • WebSocket connections open on the client's own TCP stream, so every resolved address is tried and local_address applies. A failed TCP connect or TLS handshake no longer has a tokio_websockets::Error as its source (#1686)
  • tokio-rustls 0.26.3 or later, which needs rustls 0.23.27 (#1687)

Behaviour changes

  • TLS settings ask for TLS. Root certificates, a client certificate, tls_client_config() and the new tls_server_name() and verify_discovered_servers_by_ip() act like require_tls(true). Against a server without TLS, the connection fails with an error naming the server and the setting. To leave TLS to each server, set tls_optional() (#1686, #1687)
  • TLS applies to every server. When anything asks for TLS, every server is dialed with TLS: discovered servers, reconnects, nats:// URLs in a mixed list, and every attempt once Client::set_server_pool is given a tls:// or wss:// URL. Then connect and set_server_pool refuse a ws:// URL with a Configuration error: write wss://. tls_optional() dials each URL with its own scheme. A build without the websockets feature refuses any WebSocket URL (#1686)
  • Discovered servers keep the transport and TLS they were learned on. A node without TLS is no longer reached through nodes with TLS: configure it at connect as a nats:// URL, with tls_optional() if the client asks for TLS. Client::server_pool() and reconnect_to_server_callback list a server learned over TLS as tls:// or wss://, and one learned over WebSocket as ws://; a callback that returns another URL gets ClientError::ServerNotInPool. A server given to Client::set_server_pool is verified like a configured server (#1687)
  • A connect_urls entry is host:port only. Other entries are skipped with a log line. User info in an entry is dropped and the client uses its own credentials (#1687)
  • Discovered servers are verified against a name the client trusts: a discovered IP address against the name its reporting server was verified under. A cluster whose certificates carry only IP addresses needs verify_discovered_servers_by_ip(); a client that reaches a cluster by IP address needs that or tls_server_name(). A discovered host name is verified against itself: with system or shared roots, give the cluster's CA as the only root, or set ignore_discovered_servers() (#1687)
  • A server that requires TLS, learned over a connection without TLS, is verified against the configured server's host name if it is listed by IP address, and is not connected to if it is listed by host name. Set tls_optional(), plus a tls:// URL for that server or tls_server_name() (#1687)
  • With TLS after INFO (not tls_first()), discovered servers come only from the INFO received inside TLS. Against nats-server before 2.12, a client configured with one server may have nothing to fail over to: configure more than one, or use tls_first(). Against 2.12 or later, each attempt waits for the INFO after the first PONG, up to the connection timeout; ignore_discovered_servers() skips it (#1688)
  • Later INFOs are applied. A connect_urls list on an established connection replaces the discovered servers, as in nats.go. Client::server_info() and max_payload follow every INFO; server_info().nonce is empty after a later one, which with TLS after INFO against 2.12 or later is at connect (#1688)

Full Changelog: nats-io/nats.rs@async-nats/v0.52.0...async-nats/v0.53.0

Commits
  • 808c149 Release async-nats/v0.53.0
  • 58bc3c2 Document the TLS settings on ConnectOptions and README
  • feb9987 Replace the discovered servers with every later list
  • 5530ea8 Replace the server info with the INFO received inside TLS
  • 5cdd87a Leave out the servers of the INFO read before TLS
  • 141273d Wait for the INFO that follows the first PONG
  • 85e149e Spell the discovered-server docs as the checker expects
  • a711a34 Run the discovered-server tests under every TLS backend
  • abb131f Verify a wss server under the same name rule
  • 0e2b3c2 Say which names a failed name check expected and saw
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [async-nats](https://github.com/nats-io/nats.rs) from 0.52.0 to 0.53.0.
- [Release notes](https://github.com/nats-io/nats.rs/releases)
- [Commits](nats-io/nats.rs@async-nats/v0.52.0...async-nats/v0.53.0)

---
updated-dependencies:
- dependency-name: async-nats
  dependency-version: 0.53.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants