dependabot[bot] opened a new pull request, #41661:
URL: https://github.com/apache/beam/pull/41661

   Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) from 
1.55.0 to 1.56.0.
   <details>
   <summary>Release notes</summary>
   <p><em>Sourced from <a 
href="https://github.com/nats-io/nats.go/releases";>github.com/nats-io/nats.go's 
releases</a>.</em></p>
   <blockquote>
   <h2>Release v1.56.0</h2>
   <h2>Changelog</h2>
   <p>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 <strong>BREAKING CHANGES</strong> below before 
upgrading.</p>
   <h3>BREAKING CHANGES</h3>
   <ul>
   <li>Core NATS:
   <ul>
   <li>
   <p><strong>TLS settings now require TLS.</strong> 
<code>Options.TLSConfig</code>, <code>RootCAsCB</code> or 
<code>TLSCertCB</code> set directly now act like <code>Secure()</code>. Against 
a server without TLS, the connection fails. Against a server where TLS is 
optional (<code>allow_non_tls</code>, <code>InProcessServer()</code>), the 
client now uses TLS, so the certificate must verify. To connect without TLS, 
drop the TLS settings (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2245";>#2245</a>)</p>
   </li>
   <li>
   <p><strong><code>ErrSecureConnWanted</code> is wrapped.</strong> Compare 
with <code>errors.Is(err, nats.ErrSecureConnWanted)</code>. <code>==</code> no 
longer matches (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2245";>#2245</a>)</p>
   </li>
   <li>
   <p><strong>With TLS after INFO, discovered servers come only from the INFO 
received inside TLS.</strong> 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:</p>
   <ul>
   <li>has nothing to fail over to against nats-server before 2.12, until the 
server sends a later INFO.</li>
   <li>fails <code>Connect()</code> when that server fails it after its INFO, 
for example at <code>max_connections</code> (reported as a TLS handshake error, 
not the server's reason), or with a certificate that doesn't match a server 
configured by IP.</li>
   </ul>
   <p>Configure more than one server URL to keep fail-over. For a server 
configured by IP, set <code>TLSConfig.ServerName</code> to a name in its 
certificate (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2245";>#2245</a>)</p>
   </li>
   <li>
   <p><strong><code>SetServerPool()</code> with a <code>tls://</code> URL turns 
TLS on for the connection</strong>, as it does at <code>Connect()</code>. 
Plaintext servers in that pool can no longer be reached. Over WebSocket, 
servers listed on a <code>wss://</code> connection are dialed with 
<code>wss://</code> (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2245";>#2245</a>)</p>
   </li>
   </ul>
   </li>
   </ul>
   <h3>FIXED</h3>
   <ul>
   <li>Core NATS:
   <ul>
   <li>User info in a <code>connect_urls</code> entry 
(<code>x@host:port</code>) used as the credentials for that server. Discovered 
servers now always get the credentials the client used for the server that 
reported them (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2245";>#2245</a>)</li>
   <li>Report TLS verification failures during reconnect. Thanks <a 
href="https://github.com/cr7258";><code>@​cr7258</code></a> for the contribution 
(<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2229";>#2229</a>)</li>
   <li>Draining subscriptions resubscribed on reconnect (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2232";>#2232</a>)</li>
   <li>Keep TLS server name for IPs discovered via an IP entry. Thanks <a 
href="https://github.com/igor-kupczynski";><code>@​igor-kupczynski</code></a> 
for the contribution (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2217";>#2217</a>)</li>
   <li>Require a separator before inline header status. Thanks <a 
href="https://github.com/ViktorBystrov72";><code>@​ViktorBystrov72</code></a> 
for the contribution (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2237";>#2237</a>)</li>
   <li>WebSocket frame handling (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2225";>#2225</a>)</li>
   <li>Treat malformed WS close frames as protocol errors (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2226";>#2226</a>)</li>
   </ul>
   </li>
   <li>JetStream:
   <ul>
   <li>Release the JetStream reconnect watcher after publisher cleanup. Thanks 
<a href="https://github.com/Grivn";><code>@​Grivn</code></a> for the 
contribution (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2216";>#2216</a>)</li>
   <li>Reduce JetStream fetch buffering allocations. Thanks <a 
href="https://github.com/manenim";><code>@​manenim</code></a> for the 
contribution (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2205";>#2205</a>)</li>
   <li>Preserve options when following object links. Thanks <a 
href="https://github.com/Grivn";><code>@​Grivn</code></a> for the contribution 
(<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2220";>#2220</a>)</li>
   </ul>
   </li>
   <li>Legacy JetStream:
   <ul>
   <li>Legacy JetStream reconnect watcher cleanup (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2218";>#2218</a>)</li>
   <li>Preserve options when following object links. Thanks <a 
href="https://github.com/Grivn";><code>@​Grivn</code></a> for the contribution 
(<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2220";>#2220</a>)</li>
   </ul>
   </li>
   </ul>
   <h3>IMPROVED</h3>
   <ul>
   <li>Core NATS:
   <ul>
   <li>Reuse header encoding buffers in <code>PublishMsg</code>. Thanks <a 
href="https://github.com/Grivn";><code>@​Grivn</code></a> for the contribution 
(<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2219";>#2219</a>)</li>
   </ul>
   </li>
   <li>JetStream:
   <ul>
   <li>Remove duplicated word in <code>MemoryMaxStreamBytes</code> comment. 
Thanks <a href="https://github.com/ninglinLiu";><code>@​ninglinLiu</code></a> 
for the contribution (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2242";>#2242</a>)</li>
   </ul>
   </li>
   <li>Remove stale <code>go.mod</code> version notes from docs. Thanks <a 
href="https://github.com/nik-6174";><code>@​nik-6174</code></a> for the 
contribution (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2233";>#2233</a>)</li>
   <li>Bump ntf-client to v0.0.5 to fix nightly tester failures (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2243";>#2243</a>)</li>
   </ul>
   <h3>Complete Changes</h3>
   <p><a 
href="https://github.com/nats-io/nats.go/compare/v1.55.0...v1.56.0";>https://github.com/nats-io/nats.go/compare/v1.55.0...v1.56.0</a></p>
   </blockquote>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/nats-io/nats.go/commit/d18c9e7a4d9fb75371669402abaf0c1ca38e0f5a";><code>d18c9e7</code></a>
 Release v1.56.0</li>
   <li><a 
href="https://github.com/nats-io/nats.go/commit/4295da5158c4a28834f935fd2935ede54e34f27a";><code>4295da5</code></a>
 [CHANGED] Ask for TLS when a custom server pool has a tls:// URL</li>
   <li><a 
href="https://github.com/nats-io/nats.go/commit/2c20143950be982987e0bce12307f035c9a4dbc5";><code>2c20143</code></a>
 [CHANGED] Take discovered servers only from the INFO received inside TLS</li>
   <li><a 
href="https://github.com/nats-io/nats.go/commit/8490a898e862e57d7846ae23c7eb262164426c38";><code>8490a89</code></a>
 [CHANGED] Require TLS when a TLS configuration is set</li>
   <li><a 
href="https://github.com/nats-io/nats.go/commit/6b33b5ab3c8df41250779e7122f6125dd7d486c0";><code>6b33b5a</code></a>
 [FIXED] Use the reporting server's credentials for discovered servers</li>
   <li><a 
href="https://github.com/nats-io/nats.go/commit/1b1807141f2c12d3e8060ccddd71c4f0f2386501";><code>1b18071</code></a>
 [FIXED] Report TLS verification failures during reconnect (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2229";>#2229</a>)</li>
   <li><a 
href="https://github.com/nats-io/nats.go/commit/354c4471cb3dd6c7282310273a803765b9033a57";><code>354c447</code></a>
 [IMPROVED] Bump ntf-client to v0.0.5 to fix nightly tester failures (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2243";>#2243</a>)</li>
   <li><a 
href="https://github.com/nats-io/nats.go/commit/5f66aec13e9f29233fecaecc5e054dbfc613eca5";><code>5f66aec</code></a>
 docs: remove duplicated word in MemoryMaxStreamBytes comment (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2242";>#2242</a>)</li>
   <li><a 
href="https://github.com/nats-io/nats.go/commit/91d004980407ae4dbf4429e69574475a26b20a5d";><code>91d0049</code></a>
 [FIXED] Require a separator before inline header status (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2237";>#2237</a>)</li>
   <li><a 
href="https://github.com/nats-io/nats.go/commit/4880fb84e0566e1792afef45197b8f605c1ca2cb";><code>4880fb8</code></a>
 [FIXED] Draining subscriptions resubscribed on reconnect (<a 
href="https://redirect.github.com/nats-io/nats.go/issues/2232";>#2232</a>)</li>
   <li>Additional commits viewable in <a 
href="https://github.com/nats-io/nats.go/compare/v1.55.0...v1.56.0";>compare 
view</a></li>
   </ul>
   </details>
   <br />
   
   
   [![Dependabot compatibility 
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/nats-io/nats.go&package-manager=go_modules&previous-version=1.55.0&new-version=1.56.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
   
   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-automerge-start)
   [//]: # (dependabot-automerge-end)
   
   ---
   
   <details>
   <summary>Dependabot commands and options</summary>
   <br />
   
   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)
   
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to