Skip to content

build(deps): bump github.com/nats-io/nats.go from 1.55.0 to 1.56.0 - #1023

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/nats-io/nats.go-1.56.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/nats-io/nats.go-1.56.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps github.com/nats-io/nats.go from 1.55.0 to 1.56.0.

Release notes

Sourced from github.com/nats-io/nats.go's releases.

Release v1.56.0

Changelog

This release fixes security issues in how the client decides to use TLS and which servers it takes from the cluster. Some of these fixes change how the client connects: read BREAKING CHANGES below before upgrading.

BREAKING CHANGES

  • Core NATS:
    • TLS settings now require TLS. Options.TLSConfig, RootCAsCB or TLSCertCB set directly now act like Secure(). Against a server without TLS, the connection fails. Against a server where TLS is optional (allow_non_tls, InProcessServer()), the client now uses TLS, so the certificate must verify. To connect without TLS, drop the TLS settings (#2245)

    • ErrSecureConnWanted is wrapped. Compare with errors.Is(err, nats.ErrSecureConnWanted). == no longer matches (#2245)

    • With TLS after INFO, discovered servers come only from the INFO received inside TLS. The plaintext INFO before the handshake no longer adds servers, and neither does a failed attempt. A TLS client configured with a single server URL therefore:

      • has nothing to fail over to against nats-server before 2.12, until the server sends a later INFO.
      • fails Connect() when that server fails it after its INFO, for example at max_connections (reported as a TLS handshake error, not the server's reason), or with a certificate that doesn't match a server configured by IP.

      Configure more than one server URL to keep fail-over. For a server configured by IP, set TLSConfig.ServerName to a name in its certificate (#2245)

    • SetServerPool() with a tls:// URL turns TLS on for the connection, as it does at Connect(). Plaintext servers in that pool can no longer be reached. Over WebSocket, servers listed on a wss:// connection are dialed with wss:// (#2245)

FIXED

  • Core NATS:
    • User info in a connect_urls entry (x@host:port) used as the credentials for that server. Discovered servers now always get the credentials the client used for the server that reported them (#2245)
    • Report TLS verification failures during reconnect. Thanks @​cr7258 for the contribution (#2229)
    • Draining subscriptions resubscribed on reconnect (#2232)
    • Keep TLS server name for IPs discovered via an IP entry. Thanks @​igor-kupczynski for the contribution (#2217)
    • Require a separator before inline header status. Thanks @​ViktorBystrov72 for the contribution (#2237)
    • WebSocket frame handling (#2225)
    • Treat malformed WS close frames as protocol errors (#2226)
  • JetStream:
    • Release the JetStream reconnect watcher after publisher cleanup. Thanks @​Grivn for the contribution (#2216)
    • Reduce JetStream fetch buffering allocations. Thanks @​manenim for the contribution (#2205)
    • Preserve options when following object links. Thanks @​Grivn for the contribution (#2220)
  • Legacy JetStream:
    • Legacy JetStream reconnect watcher cleanup (#2218)
    • Preserve options when following object links. Thanks @​Grivn for the contribution (#2220)

IMPROVED

  • Core NATS:
    • Reuse header encoding buffers in PublishMsg. Thanks @​Grivn for the contribution (#2219)
  • JetStream:
    • Remove duplicated word in MemoryMaxStreamBytes comment. Thanks @​ninglinLiu for the contribution (#2242)
  • Remove stale go.mod version notes from docs. Thanks @​nik-6174 for the contribution (#2233)
  • Bump ntf-client to v0.0.5 to fix nightly tester failures (#2243)

Complete Changes

nats-io/nats.go@v1.55.0...v1.56.0

Commits
  • d18c9e7 Release v1.56.0
  • 4295da5 [CHANGED] Ask for TLS when a custom server pool has a tls:// URL
  • 2c20143 [CHANGED] Take discovered servers only from the INFO received inside TLS
  • 8490a89 [CHANGED] Require TLS when a TLS configuration is set
  • 6b33b5a [FIXED] Use the reporting server's credentials for discovered servers
  • 1b18071 [FIXED] Report TLS verification failures during reconnect (#2229)
  • 354c447 [IMPROVED] Bump ntf-client to v0.0.5 to fix nightly tester failures (#2243)
  • 5f66aec docs: remove duplicated word in MemoryMaxStreamBytes comment (#2242)
  • 91d0049 [FIXED] Require a separator before inline header status (#2237)
  • 4880fb8 [FIXED] Draining subscriptions resubscribed on reconnect (#2232)
  • 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 [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) from 1.55.0 to 1.56.0.
- [Release notes](https://github.com/nats-io/nats.go/releases)
- [Commits](nats-io/nats.go@v1.55.0...v1.56.0)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
  dependency-version: 1.56.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 go Pull requests that update Go code labels Nov 20, 2026
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 go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants