Skip to content

Cherry-picks for v2.12.4-RC.3#7742

Merged
neilalexander merged 8 commits intorelease/v2.12.4from
backports/v2.12.4-RC.3
Jan 20, 2026
Merged

Cherry-picks for v2.12.4-RC.3#7742
neilalexander merged 8 commits intorelease/v2.12.4from
backports/v2.12.4-RC.3

Conversation

@neilalexander
Copy link
Member

@neilalexander neilalexander commented Jan 20, 2026

jnmoyne and others added 6 commits January 20, 2026 10:39
…null" in the `sources` array.

Signed-off-by: Jean-Noël Moyne <jnmoyne@gmail.com>
Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander requested a review from a team as a code owner January 20, 2026 10:43
The config parser allows for environment variables to reference
other environment variables. However, self references or cycles
would cause the parser to enter an infinite recursion.

This commit introduces cycle detection in the environment
variable lookup process, so that the parser handles cycles
and self-references gracefully.
A set of tests check that the current behavior of the parser
did not change:

    - variables can reference other variables, as well
      as environment variables
    - environment variables can reference other
      evironment variables, but not local variables

Fixes #7730

Signed-off-by: Daniele Sciascia <daniele@nats.io>
Copy link
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Waldemar Quevedo <wally@nats.io>
@neilalexander neilalexander merged commit 55c5c7e into release/v2.12.4 Jan 20, 2026
69 of 70 checks passed
@neilalexander neilalexander deleted the backports/v2.12.4-RC.3 branch January 20, 2026 12:03
@webstradev
Copy link

@neilalexander will this produce an image that I'd be able to verify with, seeing as our last tests were based on a different approach?

@neilalexander
Copy link
Member Author

@webstradev Yep, it's synadia/nats-server:2.12.4-RC.3-alpine3.22 here or synadia/nats-server:2.12.4-RC.3-scratch here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants