[PR #4429] [MERGED] [management] add temporary peers and automatic policy cleanup #23312

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4429
Author: @pascal-fischer
Created: 9/1/2025
Status: Merged
Merged: 9/9/2025
Merged by: @pascal-fischer

Base: poc-wasm-cleanHead: poc-wasm-clean-backend


📝 Commits (10+)

  • 3271f6c add temporary peers and automatic policy cleanup
  • d94f02d fix network map update check on policy
  • 9e157c3 add resources with direct peer support
  • 0885ac5 use dedicated API to add peers
  • daff66e update tests
  • bd74c48 Merge branch 'poc-wasm-clean' into poc-wasm-clean-backend
  • ed24b91 update tests
  • ff11197 remove immediate peer cleanup
  • 7c4c033 fix test
  • 5a667c1 use like to search json strings

📊 Changes

34 files changed (+593 additions, -101 deletions)

View changed files

📝 client/cmd/testutil_test.go (+2 -1)
📝 client/internal/engine_test.go (+2 -1)
📝 client/server/server_test.go (+2 -1)
📝 management/internals/server/controllers.go (+5 -3)
📝 management/internals/server/modules.go (+4 -0)
📝 management/internals/server/server.go (+6 -6)
📝 management/server/account.go (+6 -0)
📝 management/server/account/manager.go (+3 -1)
📝 management/server/account_test.go (+19 -19)
📝 management/server/dns_test.go (+2 -2)
📝 management/server/grpcserver.go (+3 -2)
📝 management/server/http/handlers/peers/peers_handler.go (+83 -0)
📝 management/server/management_proto_test.go (+2 -1)
📝 management/server/management_test.go (+2 -1)
📝 management/server/mock_server/account_mock.go (+10 -2)
📝 management/server/nameserver_test.go (+2 -2)
📝 management/server/networks/resources/manager.go (+2 -2)
📝 management/server/peer.go (+45 -8)
📝 management/server/peer/peer.go (+10 -0)
📝 management/server/peer_test.go (+37 -37)

...and 14 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)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__


🔄 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/4429 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 9/1/2025 **Status:** ✅ Merged **Merged:** 9/9/2025 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `poc-wasm-clean` ← **Head:** `poc-wasm-clean-backend` --- ### 📝 Commits (10+) - [`3271f6c`](https://github.com/netbirdio/netbird/commit/3271f6cb49b1d8be5a195162d48722644311e066) add temporary peers and automatic policy cleanup - [`d94f02d`](https://github.com/netbirdio/netbird/commit/d94f02d0d7d23ed36799a66bcbf9872b342f6b06) fix network map update check on policy - [`9e157c3`](https://github.com/netbirdio/netbird/commit/9e157c33c33491f223cb4c3407abf5efa05038d4) add resources with direct peer support - [`0885ac5`](https://github.com/netbirdio/netbird/commit/0885ac5e564b6767f6a2d6a07d4ebb31a3a81fc0) use dedicated API to add peers - [`daff66e`](https://github.com/netbirdio/netbird/commit/daff66e4e94ffa89ad42a1a2b8e5c9a68c459933) update tests - [`bd74c48`](https://github.com/netbirdio/netbird/commit/bd74c484a6285cf2d22e9c00fdc710b9406cf302) Merge branch 'poc-wasm-clean' into poc-wasm-clean-backend - [`ed24b91`](https://github.com/netbirdio/netbird/commit/ed24b91e3fad5faa4faf78d742ca5e589d8b55a1) update tests - [`ff11197`](https://github.com/netbirdio/netbird/commit/ff1119759fd8b2713112a121cf64427fad8d1568) remove immediate peer cleanup - [`7c4c033`](https://github.com/netbirdio/netbird/commit/7c4c033f69142fab1a8f1710aa944b9224d732be) fix test - [`5a667c1`](https://github.com/netbirdio/netbird/commit/5a667c1007abe585a31cc8d94b5ed81d1798c6cb) use like to search json strings ### 📊 Changes **34 files changed** (+593 additions, -101 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/testutil_test.go` (+2 -1) 📝 `client/internal/engine_test.go` (+2 -1) 📝 `client/server/server_test.go` (+2 -1) 📝 `management/internals/server/controllers.go` (+5 -3) 📝 `management/internals/server/modules.go` (+4 -0) 📝 `management/internals/server/server.go` (+6 -6) 📝 `management/server/account.go` (+6 -0) 📝 `management/server/account/manager.go` (+3 -1) 📝 `management/server/account_test.go` (+19 -19) 📝 `management/server/dns_test.go` (+2 -2) 📝 `management/server/grpcserver.go` (+3 -2) 📝 `management/server/http/handlers/peers/peers_handler.go` (+83 -0) 📝 `management/server/management_proto_test.go` (+2 -1) 📝 `management/server/management_test.go` (+2 -1) 📝 `management/server/mock_server/account_mock.go` (+10 -2) 📝 `management/server/nameserver_test.go` (+2 -2) 📝 `management/server/networks/resources/manager.go` (+2 -2) 📝 `management/server/peer.go` (+45 -8) 📝 `management/server/peer/peer.go` (+10 -0) 📝 `management/server/peer_test.go` (+37 -37) _...and 14 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 - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) > 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). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ --- <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:07:03 -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#23312