Upgrade nats to 2.9.x version with new on-disk storage and patch security vulnerabilties#2242
Merged
ddelnano merged 1 commit intopixie-io:mainfrom Jul 23, 2025
Conversation
…rity vulnerabilities Signed-off-by: Dom Del Nano <ddelnano@gmail.com> (cherry picked from commit 16842c8)
ddelnano
commented
Jul 23, 2025
| RUN git clone --depth 1 https://github.com/nats-io/nats-server.git | ||
| WORKDIR /src/nats-server | ||
| RUN git checkout $NATS_VERSION | ||
| RUN git fetch --tags && git checkout $NATS_VERSION |
Member
Author
There was a problem hiding this comment.
This was needed to avoid the following error:
=> ERROR [linux/amd64 build 7/11] RUN git checkout v2.9.25 0.2s
=> ERROR [linux/amd64->arm64 build 7/11] RUN git checkout v2.9.25 0.2s
------
> [linux/amd64 build 7/11] RUN git checkout v2.9.25:
#0 0.215 error: pathspec 'v2.9.25' did not match any file(s) known to git
------
------
> [linux/amd64->arm64 build 7/11] RUN git checkout v2.9.25:
#0 0.214 error: pathspec 'v2.9.25' did not match any file(s) known to git
------
Dockerfile:32
--------------------
vihangm
approved these changes
Jul 23, 2025
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.
Summary: Upgrade nats to 2.9.x version with new on-disk storage and patch security vulnerabilities.
This change aims to prepare for a seamless upgrade to a more recent NATS version while addressing some security vulnerabilities. As mentioned in the NATS release notes, the v2.9.22+ release is aware of the on-disk storage changes introduced in v2.10.x. This makes it possible to downgrade from v2.10.x safely should the next, more ambitious upgrade result in issues.
Relevant Issues: N/A
Type of change: /kind dependencies
Test Plan: Skaffold'ed a cloud and vizier and acceptance tested common flows end to end
trivy scanfor this image is cleanChangelog Message: Upgrade Cloud and Vizier NATS to v2.9.25. This upgrades NATS on-disk format to the one introduced in the v2.10.x series. Please see the NATS release notes for more details on this upgrade.