[PR #972] [MERGED] Don't create setup keys on new account #13203

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/972
Author: @braginini
Created: 6/20/2023
Status: Merged
Merged: 6/27/2023
Merged by: @braginini

Base: mainHead: feature/remove_default_setupkeys


📝 Commits (4)

  • 9617806 Don't create setup keys on new account
  • cdbce05 Fix tests that used default keys
  • 5b76c61 Fix tests using default keys
  • d47a89c Create the setup keys map separately from the constructor

📊 Changes

3 files changed (+53 additions, -46 deletions)

View changed files

📝 management/server/account.go (+6 -11)
📝 management/server/account_test.go (+21 -18)
📝 management/server/peer_test.go (+26 -17)

📄 Description

Describe your changes

Since we enabled one-time setup key display,
there is no need to generate keys by default.

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

🔄 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/972 **Author:** [@braginini](https://github.com/braginini) **Created:** 6/20/2023 **Status:** ✅ Merged **Merged:** 6/27/2023 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `feature/remove_default_setupkeys` --- ### 📝 Commits (4) - [`9617806`](https://github.com/netbirdio/netbird/commit/96178065e41c645b13b117d4df7ae80871836b8c) Don't create setup keys on new account - [`cdbce05`](https://github.com/netbirdio/netbird/commit/cdbce050e69d92f9c40e4803989ab07f70668c9f) Fix tests that used default keys - [`5b76c61`](https://github.com/netbirdio/netbird/commit/5b76c610a6b34776fa74b13b170481bc0aae6111) Fix tests using default keys - [`d47a89c`](https://github.com/netbirdio/netbird/commit/d47a89c545b511b63dae90dc0c037c8853433fad) Create the setup keys map separately from the constructor ### 📊 Changes **3 files changed** (+53 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+6 -11) 📝 `management/server/account_test.go` (+21 -18) 📝 `management/server/peer_test.go` (+26 -17) </details> ### 📄 Description ## Describe your changes Since we enabled one-time setup key display, there is no need to generate keys by default. ## Issue ticket number and link ### Checklist - [ ] 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 --- <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:07: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#13203