[PR #4118] [CLOSED] Add account onboarding #22490

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4118
Author: @pnmcosta
Created: 7/8/2025
Status: Closed

Base: mainHead: add-account-onboarding


📝 Commits (10+)

  • 432dc42 add account onboarding
  • 2dc230a add store and account manager methods
  • 7a5edb3 create accounts with pending onboarding
  • d806fc4 handle empty onboard to avoid breaking clients and dashboard
  • ad22e9e Merge branch 'main' into add-account-onboarding
  • 1ffc893 add rate limit
  • bcccd65 add rate limit
  • 4c58088 fix go mod
  • 7aa2ca8 split call to BufferUpdateAccountPeers when system user initiates
  • ad0b78a add request id to ephemeral cleanup

📊 Changes

25 files changed (+753 additions, -147 deletions)

View changed files

📝 client/cmd/testutil_test.go (+5 -0)
📝 go.mod (+1 -1)
📝 management/client/client_test.go (+6 -0)
📝 management/server/account.go (+69 -0)
📝 management/server/account/manager.go (+3 -0)
📝 management/server/account_test.go (+71 -0)
📝 management/server/dns_test.go (+2 -0)
📝 management/server/ephemeral.go (+36 -7)
📝 management/server/ephemeral_test.go (+87 -11)
📝 management/server/grpcserver.go (+79 -4)
📝 management/server/http/api/openapi.yml (+19 -0)
📝 management/server/http/api/types.gen.go (+14 -3)
📝 management/server/http/handlers/accounts/accounts_handler.go (+29 -3)
📝 management/server/http/handlers/accounts/accounts_handler_test.go (+39 -5)
📝 management/server/management_proto_test.go (+5 -1)
📝 management/server/mock_server/account_mock.go (+109 -88)
📝 management/server/nameserver_test.go (+6 -0)
📝 management/server/peer.go (+35 -20)
📝 management/server/peer_test.go (+10 -0)
📝 management/server/status/error.go (+5 -0)

...and 5 more files

📄 Description

Describe your changes

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/4118 **Author:** [@pnmcosta](https://github.com/pnmcosta) **Created:** 7/8/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add-account-onboarding` --- ### 📝 Commits (10+) - [`432dc42`](https://github.com/netbirdio/netbird/commit/432dc42bf563e6fb5c1ed7e7e9a8f36b7a9343af) add account onboarding - [`2dc230a`](https://github.com/netbirdio/netbird/commit/2dc230ab9abd180735e53031d9a13355a34a5802) add store and account manager methods - [`7a5edb3`](https://github.com/netbirdio/netbird/commit/7a5edb3894e31c9c84d8bab1aab681f1ba6e927c) create accounts with pending onboarding - [`d806fc4`](https://github.com/netbirdio/netbird/commit/d806fc4a036a23d81ee05dd67b1a522800e5d379) handle empty onboard to avoid breaking clients and dashboard - [`ad22e9e`](https://github.com/netbirdio/netbird/commit/ad22e9eea1c83132de7c9e75cbd8b00d5db80296) Merge branch 'main' into add-account-onboarding - [`1ffc893`](https://github.com/netbirdio/netbird/commit/1ffc8933de13113c45ef41a7d6e207222e10e19d) add rate limit - [`bcccd65`](https://github.com/netbirdio/netbird/commit/bcccd6500893a754f2d0c35fa81ffef86ba56b95) add rate limit - [`4c58088`](https://github.com/netbirdio/netbird/commit/4c5808831108ac49656246b7cbed981cfd6d83fe) fix go mod - [`7aa2ca8`](https://github.com/netbirdio/netbird/commit/7aa2ca87f21bf175625b9214355e46e7c3fdf356) split call to BufferUpdateAccountPeers when system user initiates - [`ad0b78a`](https://github.com/netbirdio/netbird/commit/ad0b78a7acc917ded6b58469204a3fafe261897e) add request id to ephemeral cleanup ### 📊 Changes **25 files changed** (+753 additions, -147 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/testutil_test.go` (+5 -0) 📝 `go.mod` (+1 -1) 📝 `management/client/client_test.go` (+6 -0) 📝 `management/server/account.go` (+69 -0) 📝 `management/server/account/manager.go` (+3 -0) 📝 `management/server/account_test.go` (+71 -0) 📝 `management/server/dns_test.go` (+2 -0) 📝 `management/server/ephemeral.go` (+36 -7) 📝 `management/server/ephemeral_test.go` (+87 -11) 📝 `management/server/grpcserver.go` (+79 -4) 📝 `management/server/http/api/openapi.yml` (+19 -0) 📝 `management/server/http/api/types.gen.go` (+14 -3) 📝 `management/server/http/handlers/accounts/accounts_handler.go` (+29 -3) 📝 `management/server/http/handlers/accounts/accounts_handler_test.go` (+39 -5) 📝 `management/server/management_proto_test.go` (+5 -1) 📝 `management/server/mock_server/account_mock.go` (+109 -88) 📝 `management/server/nameserver_test.go` (+6 -0) 📝 `management/server/peer.go` (+35 -20) 📝 `management/server/peer_test.go` (+10 -0) 📝 `management/server/status/error.go` (+5 -0) _...and 5 more files_ </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ## Stack <!-- branch-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](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:06:01 -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#22490