[PR #3388] [MERGED] [management] Block deletion of peers linked as ingress peers #22481

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3388
Author: @bcmmbaga
Created: 2/25/2025
Status: Merged
Merged: 3/8/2025
Merged by: @mlsmaycon

Base: feature/port-forwardingHead: feature/block-ingress-peer-deletion


📝 Commits (8)

  • f763139 wip: check if peer is used in ingress port on deletion
  • 9b61553 Handle transaction error on peer deletion
  • 0c2921f Merge branch 'fix/handle-peer-deletion-error' into feature/block-ingress-peer-deletion
  • 6ec6788 Refactor peer deletion validation
  • 5db2c73 Merge branch 'feature/port-forwarding' into feature/block-ingress-peer-deletion
  • 762fb87 Add IsPeerInIngressPorts method to ControllerMock
  • 7040233 Update management-integrations
  • 5c37b50 trigger ci/cd tests

📊 Changes

4 files changed (+29 additions, -3 deletions)

View changed files

📝 go.mod (+1 -1)
📝 go.sum (+2 -2)
📝 management/server/integrations/port_forwarding/controller.go (+5 -0)
📝 management/server/peer.go (+21 -0)

📄 Description

Describe your changes

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/3388 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 2/25/2025 **Status:** ✅ Merged **Merged:** 3/8/2025 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `feature/port-forwarding` ← **Head:** `feature/block-ingress-peer-deletion` --- ### 📝 Commits (8) - [`f763139`](https://github.com/netbirdio/netbird/commit/f7631394a0ff49f1e8cc0bae48c350d9ad15f96e) wip: check if peer is used in ingress port on deletion - [`9b61553`](https://github.com/netbirdio/netbird/commit/9b61553b5182a9c246b7944cfb86f99cae96b87d) Handle transaction error on peer deletion - [`0c2921f`](https://github.com/netbirdio/netbird/commit/0c2921fd30a83f9d502ef313861aac1bf00b54ab) Merge branch 'fix/handle-peer-deletion-error' into feature/block-ingress-peer-deletion - [`6ec6788`](https://github.com/netbirdio/netbird/commit/6ec6788931cd52776c3cd9ecccca5ba3580e063a) Refactor peer deletion validation - [`5db2c73`](https://github.com/netbirdio/netbird/commit/5db2c73af72df62bb541fa7d94d85877a03aa87f) Merge branch 'feature/port-forwarding' into feature/block-ingress-peer-deletion - [`762fb87`](https://github.com/netbirdio/netbird/commit/762fb87c9b40b4b976a4dcd51dd3d84eadb2a348) Add IsPeerInIngressPorts method to ControllerMock - [`7040233`](https://github.com/netbirdio/netbird/commit/7040233b18656a8d8555bfc527e3483d0c64724f) Update management-integrations - [`5c37b50`](https://github.com/netbirdio/netbird/commit/5c37b50fc2fffdf181b46d35c8d3360e588ea7f7) trigger ci/cd tests ### 📊 Changes **4 files changed** (+29 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+1 -1) 📝 `go.sum` (+2 -2) 📝 `management/server/integrations/port_forwarding/controller.go` (+5 -0) 📝 `management/server/peer.go` (+21 -0) </details> ### 📄 Description ## Describe your changes ## 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 06:06:00 -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#22481