Skip to content

Installer: record an existing NetBird connection without sudo - #368

Merged
rbardaji merged 1 commit into
mainfrom
fix/367-netbird-already-connected
Oct 20, 2026
Merged

rbardaji merged 1 commit into
mainfrom
fix/367-netbird-already-connected

Conversation

@rbardaji

Copy link
Copy Markdown
Collaborator

Closes #367.

With 0.34.57 a new installation joins NetBird by default. Run unattended (--yes or no terminal) on a host already connected to NDP's NetBird network, the installer said it needed sudo and wrote NETBIRD_ENABLED=False, because it checked for passwordless sudo before looking at the existing connection, which needs none.

  • The installer now reads the connection first (netbird status as the user, through sudo only if that fails) and only requires sudo to install the client or join.

Version 0.34.58, CHANGELOG updated.

Tests: new test in install/tests/test_netbird_affinities.py (fails on main); full suite 1565 passed.

Verified on a real host already connected to NetBird: re-running the installer unattended on a second Endpoint recorded the connection (NETBIRD_ENABLED=True, the NetBird address, reported in its metrics), with the rest of its .env unchanged.

An unattended run on a host already connected to NDP's NetBird network
reported NetBird not joined: the installer checked for passwordless sudo
before looking at the connection, which needs no sudo. It now reads the
connection first and only requires sudo to install the client or join.
Release 0.34.58.
@rbardaji
rbardaji merged commit cf4ec9a into main Oct 20, 2026
2 checks passed
@rbardaji
rbardaji deleted the fix/367-netbird-already-connected branch October 20, 2026 16:03
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.

Installer: an unattended run reports NetBird not joined on a machine that is already connected

1 participant