Skip to content

chore: upgrade NATS server to 2.14.9 and nats.go to v1.53.1 - oss - #7079

Merged
prakash100198 merged 3 commits into
developfrom
nats-version-upgrade-oss
Nov 13, 2026
Merged

prakash100198 merged 3 commits into
developfrom
nats-version-upgrade-oss

Conversation

@prakash100198

@prakash100198 prakash100198 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes https://github.com/devtron-labs/sprint-tasks/issues/2993
Upgrades the bundled NATS server from 2.9.3 to 2.14.9 and bumps the Go client nats.go to v1.53.1.

Server images (charts/devtron/values.yaml, charts/devtron/devtron-bom.yaml, devtron-images.txt.source, manifests/yamls/nats-server.yaml, tests/integrationTesting/nats-server.yaml):

Image Before After
nats 2.9.3-alpine 2.14.9-alpine
nats-server-config-reloader 0.6.2 0.25.0
prometheus-nats-exporter 0.9.0 0.20.3
nats-box untagged 0.20.1
  • 2.14.9 is the latest stable patch of the maintained 2.14 line. The 2.15 upgrade guide recommends starting from 2.14.7 or later, so 2.15 is a later step.
  • The image stays on -alpine because the preStop hook runs /bin/sh.
  • nats.conf is unchanged. We run a single node with file storage and no mirrors or sources, so none of the 2.10 to 2.14 config changes apply.
  • Reloader 0.25.0 still ships its binary in /usr/local/bin, so the existing command: works. The exporter flags are the same in 0.20.3.

Client (go.mod, go.sum, vendor/): nats.go v1.43.0 → v1.53.1 (nkeys → v0.4.15, klauspost/compress → v1.18.5). v1.53.1 is the newest release on Go 1.25; v1.54 and later need Go 1.26. It is bumped directly, so this PR does not wait on a common-lib release. pubsub-lib code is unchanged.

Before merge: infra must mirror the 4 images to quay.io/devtron. Otherwise NATS pods fail to pull.

Rollback: 2.10 and later change the JetStream on-disk format, and NATS only supports downgrading 2.10 data to 2.9.22 or later. Putting 2.9.3 back on upgraded data is not safe. Instead, restore the NATS PVC snapshot, or start on an empty store. Services recreate their streams and consumers on startup.

How Has This Been Tested?

E2E with real nats-server binaries and Devtron's common-lib/pubsub-lib. The old client is develop's nats.go v1.42.0 and the new client is v1.53.1. The test uses the chart's JetStream config (domain devtron-jet, file store):

  • Data written by old services on 2.9.3 (2 durable consumers, 9 pending messages) survives the upgrade to 2.14.9 on the same store, and all 9 messages are delivered after the upgrade
  • New client on 2.14.9: publish/subscribe roundtrip works, and UpdateStream (max_age) and UpdateConsumer (ack_wait) are accepted under the strict mode added in 2.12
  • Old client on 2.14.9 (services not yet redeployed): the same checks pass
  • Notifier (nats.js 2.29.3, its real PubSubServiceImpl) receives events and updates its consumer on restart
  • Fresh install (empty store) on 2.14.9 works
  • No errors or warnings in either server log; 24/24 checks pass
  • Vendored pubsub-lib and nats.go compile

Not tested: a Helm upgrade on a real cluster.

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?

action-required: The bundled NATS server is upgraded from 2.9.3 to 2.14.9 (config reloader 0.25.0, metrics exporter 0.20.3, nats-box 0.20.1). Air-gapped installs must mirror the new images. Downgrading NATS back to 2.9.3 after the upgrade is not supported.

Related PRs

🤖 Generated with Claude Code

prakash100198 and others added 2 commits November 4, 2026 18:53
- nats 2.9.3-alpine -> 2.14.9-alpine
- nats-server-config-reloader 0.6.2 -> 0.25.0
- prometheus-nats-exporter 0.9.0 -> 0.20.3
- nats-box pinned to 0.20.1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Also moves nkeys to v0.4.15 and klauspost/compress to v1.18.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bito-code-review

Copy link
Copy Markdown

Bito Automatic Review Skipped - Branch Excluded

Bito didn't auto-review because the source or target branch is excluded from automatic reviews. To trigger review, type /review in the comment and save. You can change the settings here, or contact the agent instance creator at shivam@devtron.ai.

@sonarqubecloud

sonarqubecloud Bot commented Nov 5, 2026

Copy link
Copy Markdown

Comment thread manifests/yamls/nats-server.yaml Resolved
Comment thread manifests/yamls/nats-server.yaml Resolved
@prakash100198
prakash100198 merged commit 2916136 into develop Nov 13, 2026
7 checks passed
@prakash100198
prakash100198 deleted the nats-version-upgrade-oss branch November 13, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants