[PR #511] [MERGED] Management single account mode #12690

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/511
Author: @braginini
Created: 10/17/2022
Status: Merged
Merged: 10/19/2022
Merged by: @braginini

Base: mainHead: feature/single-account-mode


📝 Commits (9)

  • da044e6 Add singlre account mode
  • 8877206 Add single account mode with JWT claims
  • 4ddd0d2 Add single account mode claims comment
  • 4032dd5 Add single account mode flags
  • a4e7db2 Add log to indicated that single account mode was disabled
  • aa57ae1 Add cmd clarifications for new properties
  • cdc0f93 Add single account mode envs to self-hosted scripts
  • 09fea24 Add single account mode envs to self-hosted scripts
  • a349982 Fix docker-compose

📊 Changes

13 files changed (+73 additions, -38 deletions)

View changed files

📝 client/cmd/testutil.go (+1 -1)
📝 client/internal/engine_test.go (+1 -1)
📝 infrastructure_files/base.setup.env (+2 -0)
📝 infrastructure_files/docker-compose.yml.tmpl (+1 -1)
📝 management/client/client_test.go (+1 -1)
📝 management/cmd/management.go (+10 -6)
📝 management/cmd/root.go (+20 -15)
📝 management/server/account.go (+32 -8)
📝 management/server/account_test.go (+1 -1)
📝 management/server/management_proto_test.go (+1 -1)
📝 management/server/management_test.go (+1 -1)
📝 management/server/nameserver_test.go (+1 -1)
📝 management/server/route_test.go (+1 -1)

📄 Description

This PR brings support for a single account mode that simplifies self-hosted installations.
Every user gets a new NetBird account by default unless
some magic is done in IdP for self-hosted installations.

We added two new flags to the Management service.
--single-account-mode-domain enables single account mode
and indicates which domain to use to group accounts. If not specified,
it defaults to netbird.selfhosted.

--disable-single-account-mode flag disables single account mode.

The single account mode is enabled by default. If your current installation
has more than one account already, the single account mode won't be enabled no
matter what configuration is set.

Than being said, every time new users signs up for your self-hosted installation,
they will land in the same account.


🔄 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/511 **Author:** [@braginini](https://github.com/braginini) **Created:** 10/17/2022 **Status:** ✅ Merged **Merged:** 10/19/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `feature/single-account-mode` --- ### 📝 Commits (9) - [`da044e6`](https://github.com/netbirdio/netbird/commit/da044e6b749bbb96fa80d62ec7110fe1d78e7ec3) Add singlre account mode - [`8877206`](https://github.com/netbirdio/netbird/commit/887720649a1e5b0b0c70f0a409371c1c0c8944dd) Add single account mode with JWT claims - [`4ddd0d2`](https://github.com/netbirdio/netbird/commit/4ddd0d2aea97525d08f6c810373f5c7f43032221) Add single account mode claims comment - [`4032dd5`](https://github.com/netbirdio/netbird/commit/4032dd5566ce5e31ae8b5075323e99ea1b9ece14) Add single account mode flags - [`a4e7db2`](https://github.com/netbirdio/netbird/commit/a4e7db2a3cfb5c10684d62988078be58685b7a09) Add log to indicated that single account mode was disabled - [`aa57ae1`](https://github.com/netbirdio/netbird/commit/aa57ae1e9ef2a186d255f78252a8589e430b7b0c) Add cmd clarifications for new properties - [`cdc0f93`](https://github.com/netbirdio/netbird/commit/cdc0f93e079667657556c20ed98dfc8eff683583) Add single account mode envs to self-hosted scripts - [`09fea24`](https://github.com/netbirdio/netbird/commit/09fea2400fe1bbf15e7e20fb9e8f6cd0715f1a29) Add single account mode envs to self-hosted scripts - [`a349982`](https://github.com/netbirdio/netbird/commit/a34998285c890717631cec0c70f7993b50c9f136) Fix docker-compose ### 📊 Changes **13 files changed** (+73 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/testutil.go` (+1 -1) 📝 `client/internal/engine_test.go` (+1 -1) 📝 `infrastructure_files/base.setup.env` (+2 -0) 📝 `infrastructure_files/docker-compose.yml.tmpl` (+1 -1) 📝 `management/client/client_test.go` (+1 -1) 📝 `management/cmd/management.go` (+10 -6) 📝 `management/cmd/root.go` (+20 -15) 📝 `management/server/account.go` (+32 -8) 📝 `management/server/account_test.go` (+1 -1) 📝 `management/server/management_proto_test.go` (+1 -1) 📝 `management/server/management_test.go` (+1 -1) 📝 `management/server/nameserver_test.go` (+1 -1) 📝 `management/server/route_test.go` (+1 -1) </details> ### 📄 Description This PR brings support for a single account mode that simplifies self-hosted installations. Every user gets a new NetBird account by default unless some [magic is done in IdP](https://netbird.io/docs/integrations/identity-providers/self-hosted/using-netbird-with-keycloak#step-8-ensure-that-all-users-will-join-the-same-netbird-network-optional) for self-hosted installations. We added two new flags to the Management service. `--single-account-mode-domain` enables single account mode and indicates which domain to use to group accounts. If not specified, it defaults to **netbird.selfhosted**. `--disable-single-account-mode` flag disables single account mode. The single account mode is **enabled** by default. If your current installation has more than one account already, the single account mode won't be enabled no matter what configuration is set. Than being said, every time new users signs up for your self-hosted installation, they will land in the same account. --- <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 02:06:27 -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#12690