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

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/5652
Author: @lixmal
Created: 3/22/2026
Status: Merged
Merged: 3/23/2026
Merged by: @mlsmaycon

Base: mainHead: simplify-entrypoint-startup


📝 Commits (1)

  • e354e26 Simplify entrypoint by running netbird up unconditionally

📊 Changes

4 files changed (+7 additions, -31 deletions)

View changed files

📝 client/Dockerfile (+1 -2)
📝 client/Dockerfile-rootless (+1 -2)
📝 client/cmd/status.go (+1 -1)
📝 client/netbird-entrypoint.sh (+4 -26)

📄 Description

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/5652 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 3/22/2026 **Status:** ✅ Merged **Merged:** 3/23/2026 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `simplify-entrypoint-startup` --- ### 📝 Commits (1) - [`e354e26`](https://github.com/netbirdio/netbird/commit/e354e2647c24cdfcd49397446d0964b5aa0ace69) Simplify entrypoint by running netbird up unconditionally ### 📊 Changes **4 files changed** (+7 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `client/Dockerfile` (+1 -2) 📝 `client/Dockerfile-rootless` (+1 -2) 📝 `client/cmd/status.go` (+1 -1) 📝 `client/netbird-entrypoint.sh` (+4 -26) </details> ### 📄 Description ## 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 --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 08:06:04 -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#28275