Cherry-picks for 2.10.15-RC.11#5429
Merged
neilalexander merged 8 commits intorelease/v2.10.15from May 16, 2024
Merged
Conversation
PR #4255 added code in generateClientInfoJSON to set the proper info Host/Port/TLSAvailable/TLSRequired fields to send to clients. However, this was requiring a lock but more importantly was computing the listener's host/port everytime, which is not necessary since this is immutable because we don't support the change during a config reload. Also, the TLSRequired field was set based on the server TLSConfig's InsecureSkipVerify value, which is irrelevant for a server. The mere presence of a TLSConfig (c.srv.websocket.tls being true) is enough. I have modified the TestWSReloadTLSConfig test to verify that the tls block cannot be removed and no_tls set to true, which means that tls value can't change. I also added check for the info's Host/Port/TLSAvailable/TLSRequired values. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
We had a bug that was reported that was not handling a block scope where the terminating '}' was on a new line. Resolves: #5396 Signed-off-by: Derek Collison <derek@nats.io> --------- Signed-off-by: Derek Collison <derek@nats.io> Co-authored-by: Waldemar Quevedo <wally@synadia.com>
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.22.0 to 0.23.0. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/golang/crypto/commit/905d78a692675acab06328af80cdfe0b681c8fc7"><code>905d78a</code></a> go.mod: update golang.org/x dependencies</li> <li><a href="https://github.com/golang/crypto/commit/ebb717d630028d3e29c90c55d73cb6de90d53c3e"><code>ebb717d</code></a> ssh: validate key type in SSH_MSG_USERAUTH_PK_OK response</li> <li><a href="https://github.com/golang/crypto/commit/0da2a6a1bbc8e689a335bea68b5cc0e3e8728854"><code>0da2a6a</code></a> openpgp: fix function name in comment</li> <li><a href="https://github.com/golang/crypto/commit/5defcc193aabc79299b09bc1e2e30445a3f78d4e"><code>5defcc1</code></a> sha3: fix Sum results for SHAKE functions on s390x</li> <li>See full diff in <a href="https://github.com/golang/crypto/compare/v0.22.0...v0.23.0">compare view</a></li> </ul> </details> <br /> [](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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@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> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Under some conditions during a rollout, messages that were already acked or double acked (ack sync), would have been redelivered to a consumer. Also includes fixes for `TestJetStreamClusterScaleConsumer` for consumer rescaling. --------- Signed-off-by: Waldemar Quevedo <wally@nats.io> Signed-off-by: Derek Collison <derek@nats.io> Co-authored-by: Derek Collison <derek@nats.io>
Member
|
5424 is probably for 2.11 since it adds new functionality.. |
c2d32e7 to
11073f6
Compare
Most of these were introduced by consideration of an atomic for leader status. This approach was abandoned. Signed-off-by: Derek Collison <derek@nats.io>
…to set needSync. Signed-off-by: Derek Collison <derek@nats.io>
1. Pull term from tav.idx even with no voted peer on recovery. 2. If we have no pterm or pindex after recovery inherit from empty WAL and tav.idx. 3. Clear wtv if we fail to write the tav.idx file. Signed-off-by: Derek Collison <derek@nats.io>
Includes improvements for streams rescaling: - When scaling up and down we keep same leader so no reason to tear everything down and then back up. We do make sure when we scale down to one to tear down cluster specific subs etc. --------- Signed-off-by: Waldemar Quevedo <wally@nats.io> Signed-off-by: Derek Collison <derek@nats.io> Co-authored-by: Derek Collison <derek@nats.io>
11073f6 to
760e418
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Includes the following:
Signed-off-by: Neil Twigg neil@nats.io