Commit 9516495
authored
fix(deps): update module github.com/nats-io/nats-server/v2 to v2.12.0 (#537)
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs
from Renovate will soon appear from 'Mend'. Learn more
[here](https://redirect.github.com/renovatebot/renovate/discussions/37842).
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
|
[github.com/nats-io/nats-server/v2](https://redirect.github.com/nats-io/nats-server)
| `v2.11.9` -> `v2.12.0` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>nats-io/nats-server
(github.com/nats-io/nats-server/v2)</summary>
###
[`v2.12.0`](https://redirect.github.com/nats-io/nats-server/releases/tag/v2.12.0)
[Compare
Source](https://redirect.github.com/nats-io/nats-server/compare/v2.11.9...v2.12.0)
#### Changelog
Refer to the [2.12 Upgrade
Guide](https://docs.nats.io/release-notes/whats_new/whats_new_212) for
backwards compatibility notes with 2.11.x.
##### Go Version
- 1.25.1
([#​7273](https://redirect.github.com/nats-io/nats-server/issues/7273))
##### Added
General
- Exponential backoff on route/gateway reconnection attempts
([#​7042](https://redirect.github.com/nats-io/nats-server/issues/7042),
[#​7048](https://redirect.github.com/nats-io/nats-server/issues/7048))
- Added `allow_insecure_cipher_suites` configuration option to `tls`
block, as insecure ciphers are now disabled by default
([#​7144](https://redirect.github.com/nats-io/nats-server/issues/7144))
- Added `X25519MLKEM768` option to the TLS curve preferences
([#​7280](https://redirect.github.com/nats-io/nats-server/issues/7280))
- No responders errors from the server now include the original subject
in the `Nats-Subject` header
([#​5250](https://redirect.github.com/nats-io/nats-server/issues/5250))
- Added `exact_match` field to the filtering of various monitoring
endpoints for server name, host or cluster matching
([#​7260](https://redirect.github.com/nats-io/nats-server/issues/7260))
JetStream
- Atomic batch publishes
([#​6966](https://redirect.github.com/nats-io/nats-server/issues/6966),
[#​7057](https://redirect.github.com/nats-io/nats-server/issues/7057),
[#​7060](https://redirect.github.com/nats-io/nats-server/issues/7060),
[#​7085](https://redirect.github.com/nats-io/nats-server/issues/7085),
[#​7090](https://redirect.github.com/nats-io/nats-server/issues/7090),
[#​7091](https://redirect.github.com/nats-io/nats-server/issues/7091),
[#​7119](https://redirect.github.com/nats-io/nats-server/issues/7119),
[#​7152](https://redirect.github.com/nats-io/nats-server/issues/7152),
[#​7175](https://redirect.github.com/nats-io/nats-server/issues/7175),
[#​7274](https://redirect.github.com/nats-io/nats-server/issues/7274),
[#​7294](https://redirect.github.com/nats-io/nats-server/issues/7294),
[#​7313](https://redirect.github.com/nats-io/nats-server/issues/7313),
[#​7314](https://redirect.github.com/nats-io/nats-server/issues/7314),
[#​7311](https://redirect.github.com/nats-io/nats-server/issues/7311),
[#​7316](https://redirect.github.com/nats-io/nats-server/issues/7316),
[#​7321](https://redirect.github.com/nats-io/nats-server/issues/7321),
[#​7322](https://redirect.github.com/nats-io/nats-server/issues/7322),
[#​7327](https://redirect.github.com/nats-io/nats-server/issues/7327),
[#​7330](https://redirect.github.com/nats-io/nats-server/issues/7330))
- Stage-and-commit style batches for JetStream message publishes with
normal consistency checks
- ADR:
<https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-50.md>
- Counter streams
([#​6973](https://redirect.github.com/nats-io/nats-server/issues/6973),
[#​6988](https://redirect.github.com/nats-io/nats-server/issues/6988),
[#​7081](https://redirect.github.com/nats-io/nats-server/issues/7081),
[#​7118](https://redirect.github.com/nats-io/nats-server/issues/7118))
- Counters are incremented or decremented by publishing to the stream
with `Nats-Incr` headers, with full aggregate consistency over sources
and mirrors
- ADR:
<https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-49.md>
- Prioritised mode for consumer priority groups
([#​7113](https://redirect.github.com/nats-io/nats-server/issues/7113))
- Allows for low-latency switching between clients based on the priority
set
- ADR:
<https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-42.md>
- Support for trusted proxies
([#​7153](https://redirect.github.com/nats-io/nats-server/issues/7153))
- Allows enforcing that connections arrive via a NATS protocol-aware
proxy
- ADR:
<https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-55.md>
- Added the ability to promote mirrors to normal streams by removing the
mirror configuration
([#​7171](https://redirect.github.com/nats-io/nats-server/issues/7171))
- This allows a mirror to take over operation if the original stream is
lost, for example in a disaster recovery scenario
- This operation cannot be undone and also requires configuring the
stream subjects to continue operation
- Added delayed message scheduling
([#​7170](https://redirect.github.com/nats-io/nats-server/issues/7170),
[#​7245](https://redirect.github.com/nats-io/nats-server/issues/7245),
[#​7319](https://redirect.github.com/nats-io/nats-server/issues/7319))
- Implements single schedule messages using the `Nats-Schedule-TTL`
message header
- ADR:
<https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-51.md>
- Added support for offline assets
([#​7158](https://redirect.github.com/nats-io/nats-server/issues/7158))
- Streams and consumers from a higher API version or using unsupported
features (i.e. after a downgrade) will be marked as offline to prevent
corruption
- ADR:
<https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-44.md>
- Added `partition(n)` for deterministic hash-based partitioning and
`random(n)` for non-deterministic random partitioning to subject
transforms
([#​6950](https://redirect.github.com/nats-io/nats-server/issues/6950))
- Added the ability to specify the required API level in JetStream API
requests with the `Nats-Required-Api-Level` request header
([#​7157](https://redirect.github.com/nats-io/nats-server/issues/7157))
- Added the ability for streams to opt into async writes
([#​7315](https://redirect.github.com/nats-io/nats-server/issues/7315),
[#​7323](https://redirect.github.com/nats-io/nats-server/issues/7323))
- Add `server_metadata` block to server config, allowing arbitrary
key-pairs to be set on a per-server basis, similar to stream/consumer
metadata
([#​6935](https://redirect.github.com/nats-io/nats-server/issues/6935))
- Support for empty votes, which improves how the Raft election logic
handles nodes that have lost their stable storage and attempt to rejoin
the cluster regardless
([#​7038](https://redirect.github.com/nats-io/nats-server/issues/7038))
- Added `"leader_since"` to the stream and consumer info responses
([#​7189](https://redirect.github.com/nats-io/nats-server/issues/7189))
Leafnodes
- Added the ability to isolate leafnode subject interest propagation
with the hub-side `isolate_leafnode_interest` configuration option,
suppressing east-west traffic and reducing subscription overheads when
there are many leafnodes
([#​7238](https://redirect.github.com/nats-io/nats-server/issues/7238),
[#​7243](https://redirect.github.com/nats-io/nats-server/issues/7243),
[#​7277](https://redirect.github.com/nats-io/nats-server/issues/7277))
- Added `disabled` option for leafnode remotes, with support for
reloading from the config at runtime
([#​7054](https://redirect.github.com/nats-io/nats-server/issues/7054))
##### Changed
General
- WebSocket and MQTT clients no longer use TCP keepalives
([#​7329](https://redirect.github.com/nats-io/nats-server/issues/7329))
JetStream
- The JetStream API level has been increased to `2`
([#​6969](https://redirect.github.com/nats-io/nats-server/issues/6969))
- The API surface is now in strict mode by default, erroring if unknown
fields are provided in the request body
([#​7049](https://redirect.github.com/nats-io/nats-server/issues/7049))
- Replicated streams will now default to async flush as long as `sync:
always` is not configured
([#​7018](https://redirect.github.com/nats-io/nats-server/issues/7018),
[#​7163](https://redirect.github.com/nats-io/nats-server/issues/7163))
- The default value for `max_buffered_msgs` has been increased by 10x to
100,000 messages
([#​6633](https://redirect.github.com/nats-io/nats-server/issues/6633))
##### Improved
General
- When logging closed connections, the remote is now logged if known,
making it easier to identify where route/gateway/leafnode connections
have dropped
([#​7077](https://redirect.github.com/nats-io/nats-server/issues/7077))
- Client-specific log lines now include the account and user if known
([#​7079](https://redirect.github.com/nats-io/nats-server/issues/7079))
JetStream
- Raft nodes will no longer respond success to catchup messages and will
ignore responses if not leader, fixing some potential stream desync
scenarios
([#​6944](https://redirect.github.com/nats-io/nats-server/issues/6944))
- Replicated streams can now be created even if some of the replica
nodes are offline
([#​7075](https://redirect.github.com/nats-io/nats-server/issues/7075))
- The storage type is now logged when logging resource limits exceeded
([#​7076](https://redirect.github.com/nats-io/nats-server/issues/7076))
- JetStream API requests are always handled from the worker pool,
improving the semantics of the API request queue and logging when
requests take too long
([#​7125](https://redirect.github.com/nats-io/nats-server/issues/7125))
- Filestore in-memory caches now use weak pointers and can respond to
garbage collector (GC) pressure, which should help to avoid a number of
possible out-of-memory scenarios
([#​7180](https://redirect.github.com/nats-io/nats-server/issues/7180))
- Filestore buffer reuse has been fixed
([#​7295](https://redirect.github.com/nats-io/nats-server/issues/7295))
- Raft will no longer send any append entries in a known non-leader
state
([#​7297](https://redirect.github.com/nats-io/nats-server/issues/7297))
- Improved recovery of filestore blocks with unexpected sequence
ordering
([#​7303](https://redirect.github.com/nats-io/nats-server/issues/7303),
[#​7304](https://redirect.github.com/nats-io/nats-server/issues/7304),
[#​7305](https://redirect.github.com/nats-io/nats-server/issues/7305))
- Filestore fixes to improve write correctness, particularly when
combined with async mode
([#​7318](https://redirect.github.com/nats-io/nats-server/issues/7318),
[#​7331](https://redirect.github.com/nats-io/nats-server/issues/7331))
Leafnodes
- Leafnode connections without auth no longer unexpectedly connect to
the global account
([#​7116](https://redirect.github.com/nats-io/nats-server/issues/7116))
##### Fixed
JetStream
- Improved validation for stream/consumer configs
([#​7134](https://redirect.github.com/nats-io/nats-server/issues/7134))
- An error will now be correctly surfaced when the
`Nats-Expected-Last-Subject-Sequence-Subject` header is supplied but the
accompanying `Nats-Expected-Last-Subject-Sequence` header is not
([#​7196](https://redirect.github.com/nats-io/nats-server/issues/7196))
OCSP
- URL encoding of OCSP requests should now be RFC4648-compliant
([#​7184](https://redirect.github.com/nats-io/nats-server/issues/7184))
##### Complete Changes
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/infratographer/x).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjk3LjEwIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 7e5b0fc commit 9516495
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| |||
0 commit comments