[PR #243] [MERGED] Group users of same private domain #12354

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/243
Author: @mlsmaycon
Created: 2/23/2022
Status: Merged
Merged: 3/1/2022
Merged by: @mlsmaycon

Base: mainHead: grouping-new-private-domain-users


📝 Commits (10+)

  • 5641ab5 Added Domain Category field and fix store tests
  • 148a812 Add GetAccountByDomain method
  • 644b89d Add Domain Category to authorization claims
  • b16c73d Initial GetAccountWithAuthorizationClaims test cases
  • fe2f7e3 Renamed Private Domain map and index it on saving account
  • b9a395b New Go build tags
  • ada14ab Added NewRegularUser function
  • 8840471 Updated restore to account for primary domain account
  • 36c7ac6 Added grouping user of private domains
  • aad4a0e Update http handles get account method and tests

📊 Changes

16 files changed (+449 additions, -75 deletions)

View changed files

📝 iface/ifacename.go (+1 -0)
📝 iface/ifacename_darwin.go (+1 -0)
📝 management/server/account.go (+151 -12)
📝 management/server/account_test.go (+150 -0)
📝 management/server/file_store.go (+38 -10)
📝 management/server/file_store_test.go (+31 -19)
📝 management/server/http/handler/peers.go (+1 -1)
📝 management/server/http/handler/peers_test.go (+2 -2)
📝 management/server/http/handler/setupkeys.go (+1 -1)
📝 management/server/jwtclaims/claims.go (+4 -3)
📝 management/server/jwtclaims/extractor.go (+9 -4)
📝 management/server/jwtclaims/extractor_test.go (+20 -4)
📝 management/server/mock_server/account_mock.go (+25 -16)
📝 management/server/store.go (+1 -0)
📝 management/server/testdata/store.json (+3 -0)
📝 management/server/user.go (+11 -3)

📄 Description

  • added 2 domain attribute fields to store and account
  • Add GetAccountByDomain method
  • Add Domain Category to authorization claims
  • Added NewRegularUser function
  • Initial GetAccountWithAuthorizationClaims test cases
  • Added grouping user of private domains via GetAccountWithAuthorizationClaims method
  • Updated HTTP handles with new GetAccountWithAuthorizationClaims method and related tests mocks

🔄 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/243 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 2/23/2022 **Status:** ✅ Merged **Merged:** 3/1/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `grouping-new-private-domain-users` --- ### 📝 Commits (10+) - [`5641ab5`](https://github.com/netbirdio/netbird/commit/5641ab5998952fc78d07691eeca09f03bde4f113) Added Domain Category field and fix store tests - [`148a812`](https://github.com/netbirdio/netbird/commit/148a812f65a8f52d03f9dff6aaff6f2205771bd6) Add GetAccountByDomain method - [`644b89d`](https://github.com/netbirdio/netbird/commit/644b89d34ce3e72fbc4434f2fa1fedd417046116) Add Domain Category to authorization claims - [`b16c73d`](https://github.com/netbirdio/netbird/commit/b16c73d57c52cc015361af69e4cd606f9f89f491) Initial GetAccountWithAuthorizationClaims test cases - [`fe2f7e3`](https://github.com/netbirdio/netbird/commit/fe2f7e35981a6707dd3b357b765a1b9109b19217) Renamed Private Domain map and index it on saving account - [`b9a395b`](https://github.com/netbirdio/netbird/commit/b9a395b49413062d9581a6033d81514dffbb1cff) New Go build tags - [`ada14ab`](https://github.com/netbirdio/netbird/commit/ada14abae14651a538e6a2eaa8f89ac2ff755723) Added NewRegularUser function - [`8840471`](https://github.com/netbirdio/netbird/commit/884047142b5d6b86d1d98db74f87ff1e0bd0a78f) Updated restore to account for primary domain account - [`36c7ac6`](https://github.com/netbirdio/netbird/commit/36c7ac665dfa74ed3fca67cc3a8432e31afe24fc) Added grouping user of private domains - [`aad4a0e`](https://github.com/netbirdio/netbird/commit/aad4a0ee80946a1a0c2f92cc13ccf98a0cd7ed4a) Update http handles get account method and tests ### 📊 Changes **16 files changed** (+449 additions, -75 deletions) <details> <summary>View changed files</summary> 📝 `iface/ifacename.go` (+1 -0) 📝 `iface/ifacename_darwin.go` (+1 -0) 📝 `management/server/account.go` (+151 -12) 📝 `management/server/account_test.go` (+150 -0) 📝 `management/server/file_store.go` (+38 -10) 📝 `management/server/file_store_test.go` (+31 -19) 📝 `management/server/http/handler/peers.go` (+1 -1) 📝 `management/server/http/handler/peers_test.go` (+2 -2) 📝 `management/server/http/handler/setupkeys.go` (+1 -1) 📝 `management/server/jwtclaims/claims.go` (+4 -3) 📝 `management/server/jwtclaims/extractor.go` (+9 -4) 📝 `management/server/jwtclaims/extractor_test.go` (+20 -4) 📝 `management/server/mock_server/account_mock.go` (+25 -16) 📝 `management/server/store.go` (+1 -0) 📝 `management/server/testdata/store.json` (+3 -0) 📝 `management/server/user.go` (+11 -3) </details> ### 📄 Description * added 2 domain attribute fields to store and account * Add GetAccountByDomain method * Add Domain Category to authorization claims * Added NewRegularUser function * Initial GetAccountWithAuthorizationClaims test cases * Added grouping user of private domains via GetAccountWithAuthorizationClaims method * Updated HTTP handles with new GetAccountWithAuthorizationClaims method and related tests mocks --- <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:05:44 -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#12354