[PR #3982] [CLOSED] Use env vars #24325

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3982
Author: @Silex
Created: 6/16/2025
Status: Closed

Base: mainHead: use-env-vars


📝 Commits (5)

  • 45d6fbe [signal] Apply env var logic to all flags
  • 6f6d276 [signal] Set root flags from environment variables
  • 4fbf818 [relay] Remove redundant "console" log file (already default)
  • c04ad01 [management] Set flags from environment variables
  • 90857d1 Prefer environment variables

📊 Changes

7 files changed (+65 additions, -21 deletions)

View changed files

📝 infrastructure_files/docker-compose.yml.tmpl (+11 -11)
📝 infrastructure_files/docker-compose.yml.tmpl.traefik (+6 -8)
management/cmd/env.go (+39 -0)
📝 management/cmd/root.go (+3 -0)
📝 relay/Dockerfile (+0 -1)
📝 signal/cmd/env.go (+5 -1)
📝 signal/cmd/root.go (+1 -0)

📄 Description

Describe your changes

  • Fixes issues introduced by #3972 (only applied to persistent flags and not all flags).
  • Adds env var supports to management service.
  • Updates docker compose templates to use env vars.

Please verify the commit that adds env vars to management, I didn't test it.

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)
  • Extended the README / documentation, if necessary

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


🔄 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/3982 **Author:** [@Silex](https://github.com/Silex) **Created:** 6/16/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `use-env-vars` --- ### 📝 Commits (5) - [`45d6fbe`](https://github.com/netbirdio/netbird/commit/45d6fbeb4957deb4cb08935f1338464645ca50ef) [signal] Apply env var logic to all flags - [`6f6d276`](https://github.com/netbirdio/netbird/commit/6f6d276bbfcd62eb50444d250e4b7c0827a76ca7) [signal] Set root flags from environment variables - [`4fbf818`](https://github.com/netbirdio/netbird/commit/4fbf81888b5f002285c02005fc4f23faf2a01c3f) [relay] Remove redundant "console" log file (already default) - [`c04ad01`](https://github.com/netbirdio/netbird/commit/c04ad01f12fd86b7ec87ce1534826e938b526fbe) [management] Set flags from environment variables - [`90857d1`](https://github.com/netbirdio/netbird/commit/90857d1c84073946c6d210177096aa4192b86bf9) Prefer environment variables ### 📊 Changes **7 files changed** (+65 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `infrastructure_files/docker-compose.yml.tmpl` (+11 -11) 📝 `infrastructure_files/docker-compose.yml.tmpl.traefik` (+6 -8) ➕ `management/cmd/env.go` (+39 -0) 📝 `management/cmd/root.go` (+3 -0) 📝 `relay/Dockerfile` (+0 -1) 📝 `signal/cmd/env.go` (+5 -1) 📝 `signal/cmd/root.go` (+1 -0) </details> ### 📄 Description ## Describe your changes - Fixes issues introduced by #3972 (only applied to persistent flags and not all flags). - Adds env var supports to management service. - Updates docker compose templates to use env vars. Please verify the commit that adds env vars to management, I didn't test it. ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [x] 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) - [ ] Extended the README / documentation, if necessary > 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). --- <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 06:08:33 -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#24325