Skip to content

Conversation

MauriceVanVeen
Copy link
Member

A leafnode could connect to a server without any credentials and be assigned to the global account. Even if the server we're connecting to requires auth, the leafnode connection would bypass that and connect it to the global account, even if a global account is not configured and nobody is listening in that account.

This is not an issue for decentralized auth or when using auth callout, as they will reject if respectively no valid JWT or credentials are passed. In other setups we need to also respect authentication and require the leafnode to have the proper credentials. This resolves confusing situations where accounts and authentication is defined, but a leafnode is able to connect without creds, connects to the global account, and proceeds to not be usable at all.

Either the leafnode requires proper credentials to be passed when connecting, or no_auth_user can be used to allow the leafnode to not specify credentials.

Resolves #6972

Signed-off-by: Maurice van Veen github@mauricevanveen.com

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner July 29, 2025 16:38
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

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

LGTM

@neilalexander neilalexander merged commit 78a80ee into main Jul 30, 2025
69 of 70 checks passed
@neilalexander neilalexander deleted the maurice/leaf-global-default branch July 30, 2025 10:22
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.

When $G is disabled for users, leaf nodes shouldn't be able to connect to $G
2 participants