NATS Context Improvements
When creating a context you can now pass --embed to embed the credential files and secrets directly into the context JSON file. This makes it easier to mount these into containers.
You can also now use resolvers to load data from other sources:
| Scheme | Source |
|---|---|
file://path or bare path
| Reads a file, expands ~ and $VAR
|
op://vault/item/field
| Reads from the 1Password CLI |
nsc://operator/account/user
| Reads creds files from nats auth or nsc stores
|
env://ENV
| Reads environment variables |
data:;base64,<payload>
| Inline RFC 2397 payload, base64-decoded |
These can be used in credentials, nkeys, user JWT, user seed, token and password. Again making it easier to configure containers and other similar setups.
Query historical data
Many commands in nats server report and nats server request can now query nats audit archives using the --archive flag.
Using this you can query historical archives using familiar commands and they would represent a point in time in the past.
Homebrew Core
You can now just do brew install nats as we are now included in the Homebrew Core repo
NATS Server 2.15 Features
See the NATS Server 2.15 Release Notes for background on these commands.
- Adds
server cluster rescuecommand. - Stream desired state support
- Support stream, cluster and meta evacuate in
nats stream clusterandnats server clustercommands - Add
nats backupcommand for editing stream backups on disk - Support domains in the system account for API level >=5
- Support canceling a Stream move in
nats stream clustercommand
Enhancements
- Add
--throughputflag tonats benchgenerator commands - Add
--archiveto read-onlynats server req *andnats server report *commands - Add fast batch publish support to
nats bench - Rework
nats contextcommand to use registry, backends and resolvers - Add
--tls-firstas a hidden alias for--tlsfirst - README: How to add authentication
- Render object metadata if present
- Adds a
decrutility to thenats countercommand - Add duration flag to
nats bench - Handle non-scoped keys in
nats auth - Migrate Homebrew installs to use the Core formula
- Add
--jitterflag tonats pub - Update
nats stream restoredocument - Add
nats auth nuidcommand
Bug Fixes
- Fixes potential out of range index in
nats bench - Improve error handling and UX in FIPS modes
- Skip badly formed micro responses
- Align
nats cheatnames with command names - Don't allow peer removal when we find multiple leaders
- Fix
nats pubignoring piped STDIN when STDOUT is redirected - Fix
nats pubcommand display for large numbers of messages - Fix panic in
nats benchcommand - Remove unused
--json - Pass Subject when using
--rawflag innats sub - Set the
@atprefix for--schedule-aftermessages innats pub - Correctly handle
--no-republishinnats stream edit - Ensure durations do not become invalid around max Int64
- Fix error handling and msg count in
nats subcommand
New Contributors
- @jainal09 made their first contribution in #1647
- @pjaudiomv made their first contribution in #1674
- @holyjak made their first contribution in #1679
- @tilakraj94 made their first contribution in #1699
- @chrisfinazzo made their first contribution in #1708
- @jtnats made their first contribution in #1710
- @alirezaarzehgar made their first contribution in #1724
Full Changelog: v0.4.0...v0.5.0