[PR #1294] [MERGED] Enable deletion of integration resources #13471

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1294
Author: @bcmmbaga
Created: 11/7/2023
Status: Merged
Merged: 11/7/2023
Merged by: @bcmmbaga

Base: mainHead: allow-integration-resource-delete


📝 Commits (3)

  • 088d24a Enforce admin service user role for integration group deletion
  • b0496e4 Restrict deletion of integration user to admin service user only
  • 97448c0 Refactor user and group deletion tests

📊 Changes

4 files changed (+26 additions, -8 deletions)

View changed files

📝 management/server/group.go (+8 -2)
📝 management/server/group_test.go (+14 -3)
📝 management/server/user.go (+3 -2)
📝 management/server/user_test.go (+1 -1)

📄 Description

Describe your changes

Extending the logic to permit the removal of groups and users issued by integrations, especially upon request by an admin service user.

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/1294 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 11/7/2023 **Status:** ✅ Merged **Merged:** 11/7/2023 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `main` ← **Head:** `allow-integration-resource-delete` --- ### 📝 Commits (3) - [`088d24a`](https://github.com/netbirdio/netbird/commit/088d24a91daa168964f4ea3c445bc50ff63190cb) Enforce admin service user role for integration group deletion - [`b0496e4`](https://github.com/netbirdio/netbird/commit/b0496e49110573e88357ccd8236aac734a7f41ff) Restrict deletion of integration user to admin service user only - [`97448c0`](https://github.com/netbirdio/netbird/commit/97448c0e65b1b0b3c97b8d35f610280dbc275a65) Refactor user and group deletion tests ### 📊 Changes **4 files changed** (+26 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `management/server/group.go` (+8 -2) 📝 `management/server/group_test.go` (+14 -3) 📝 `management/server/user.go` (+3 -2) 📝 `management/server/user_test.go` (+1 -1) </details> ### 📄 Description ## Describe your changes Extending the logic to permit the removal of groups and users issued by integrations, especially upon request by an admin service user. ## 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:08:32 -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#13471