[PR #4036] Env vars improvements #22279

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4036
Author: @Silex
Created: 6/23/2025
Status: 🔄 Open

Base: mainHead: env-vars-improvements


📝 Commits (5)

  • 3f46e59 [signal] Apply env var logic to all flags
  • ab56c58 [signal] Set root flags from environment variables
  • 9b5f8d2 [relay] Remove redundant "console" log file (already default)
  • 4da6955 [management] Set flags from environment variables
  • 077647c 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.
  • Remove redundant "console" flag in relay.

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/4036 **Author:** [@Silex](https://github.com/Silex) **Created:** 6/23/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `env-vars-improvements` --- ### 📝 Commits (5) - [`3f46e59`](https://github.com/netbirdio/netbird/commit/3f46e5920fbf92a3a1341cec584a447fed55f92f) [signal] Apply env var logic to all flags - [`ab56c58`](https://github.com/netbirdio/netbird/commit/ab56c581ef0b2f9e5c664781046086cc8783bf5d) [signal] Set root flags from environment variables - [`9b5f8d2`](https://github.com/netbirdio/netbird/commit/9b5f8d257f9642f3783b08b97518878348432e5e) [relay] Remove redundant "console" log file (already default) - [`4da6955`](https://github.com/netbirdio/netbird/commit/4da6955b1aa17ac537c0bb20aa6539d568386bcd) [management] Set flags from environment variables - [`077647c`](https://github.com/netbirdio/netbird/commit/077647c356f214b8446992fc3b2347b7ca39cd2a) 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. - Remove redundant "console" flag in relay. 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:05:47 -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#22279