[PR #5652] [client] Simplify entrypoint by running netbird up unconditionally #23530

Closed
opened 2026-08-05 06:07:20 -04:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/5652

State: closed
Merged: Yes


Describe your changes

  • Replace login_if_needed polling loop with unconditional netbird up call, which is a no-op when already connected

  • Remove NB_ENTRYPOINT_LOGIN_TIMEOUT env var from entrypoint and both Dockerfiles since it is no longer needed

  • Stop running STUN/TURN probes for --check startup: the relay status recorder already tracks availability in real time, and checkStartup only checks relay connectivity (not STUN/TURN)

Follow-up to #5650

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Entrypoint behavior change only. No user-facing CLI or API changes.

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • Chores
    • Removed login timeout environment variable from container configurations
    • Simplified startup logic to unconditionally establish connection after daemon initialization
  • Bug Fixes
    • Adjusted health-check behavior to skip probe execution during status checks
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/5652 **State:** closed **Merged:** Yes --- ## Describe your changes - Replace `login_if_needed` polling loop with unconditional `netbird up` call, which is a no-op when already connected - Remove `NB_ENTRYPOINT_LOGIN_TIMEOUT` env var from entrypoint and both Dockerfiles since it is no longer needed - Stop running STUN/TURN probes for `--check startup`: the relay status recorder already tracks availability in real time, and `checkStartup` only checks relay connectivity (not STUN/TURN) ## Issue ticket number and link Follow-up to #5650 ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) Entrypoint behavior change only. No user-facing CLI or API changes. ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Removed login timeout environment variable from container configurations * Simplified startup logic to unconditionally establish connection after daemon initialization * **Bug Fixes** * Adjusted health-check behavior to skip probe execution during status checks <!-- end of auto-generated comment: release notes by coderabbit.ai -->
saavagebueno added the pull-request label 2026-08-05 06:07:20 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#23530