Can't delete empty group due to revoked setup key ? #1222

Closed
opened 2025-11-20 05:26:16 -05:00 by saavagebueno · 4 comments
Owner

Originally created by @R-Nabil on GitHub (Sep 8, 2024).

Describe the problem

Fairly simple : you create a setup-key assigned to a group. Then you revoke that setup key, and actually want to get rid of this group as well. However, you can't get rid of the group as the setup-key, even revoked, is considered part of the group.

To Reproduce

See above

Expected behavior

Be able to delete group with unused setup keys.

Are you using NetBird Cloud?

Yes but similar in selfhosted.

NetBird version

Not sure if relevant here but : 0.28.9

Screenshots

image
Originally created by @R-Nabil on GitHub (Sep 8, 2024). **Describe the problem** Fairly simple : you create a setup-key assigned to a group. Then you revoke that setup key, and actually want to get rid of this group as well. However, you can't get rid of the group as the setup-key, even revoked, is considered part of the group. **To Reproduce** See above **Expected behavior** Be able to delete group with unused setup keys. **Are you using NetBird Cloud?** Yes but similar in selfhosted. **NetBird version** Not sure if relevant here but : 0.28.9 **Screenshots** <img width="1046" alt="image" src="https://github.com/user-attachments/assets/6b8deb97-cd50-490d-b647-9af2c4706223">
saavagebueno added the feature-requestUXmanagement-service labels 2025-11-20 05:26:16 -05:00
Author
Owner

@pascal-fischer commented on GitHub (Sep 9, 2024):

Hi @R-Nabil,
this is how the system works right now. I do see the point that it is not particularly user-friendly. I will put this as a feature request for us to think about ignoring it for revoked keys and do the cleanup automatically on group deletion.

@pascal-fischer commented on GitHub (Sep 9, 2024): Hi @R-Nabil, this is how the system works right now. I do see the point that it is not particularly user-friendly. I will put this as a feature request for us to think about ignoring it for revoked keys and do the cleanup automatically on group deletion.
Author
Owner

@R-Nabil commented on GitHub (Sep 9, 2024):

I’ve tried to use the API to reassign the keys to a different group (temporary workaround).

Would this group eventually be deleted when those keys expired ? Can I expire them through the API ?
On 9 Sep 2024 at 14:07 +0200, pascal-fischer @.***>, wrote:

Hi @R-Nabil,
this is how the system works right now. I do see the point that it is not particularly user-friendly. I will put this as a feature request for us to think about ignoring it for revoked keys and do the cleanup automatically on group deletion.

Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

@R-Nabil commented on GitHub (Sep 9, 2024): I’ve tried to use the API to reassign the keys to a different group (temporary workaround). Would this group eventually be deleted when those keys expired ? Can I expire them through the API ? On 9 Sep 2024 at 14:07 +0200, pascal-fischer ***@***.***>, wrote: > Hi @R-Nabil, > this is how the system works right now. I do see the point that it is not particularly user-friendly. I will put this as a feature request for us to think about ignoring it for revoked keys and do the cleanup automatically on group deletion. > — > Reply to this email directly, view it on GitHub, or unsubscribe. > You are receiving this because you were mentioned.Message ID: ***@***.***>
Author
Owner

@pascal-fischer commented on GitHub (Sep 9, 2024):

You don't need to reassign them, if you just clear the groups a key can belong to no group. Groups will not be deleted if the keys are revoked. You can expire keys over the API, yes.

@pascal-fischer commented on GitHub (Sep 9, 2024): You don't need to reassign them, if you just clear the groups a key can belong to no group. Groups will not be deleted if the keys are revoked. You can expire keys over the API, yes.
Author
Owner

@R-Nabil commented on GitHub (Sep 9, 2024):

It actually seems pretty obvious now that you say it :) Thank you !
On 9 Sep 2024 at 14:17 +0200, pascal-fischer @.***>, wrote:

You don't need to reassign them, if you just clear the groups a key can belong to no group. Groups will not be deleted if the keys are revoked. You can expire keys over the API, yes.

Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

@R-Nabil commented on GitHub (Sep 9, 2024): It actually seems pretty obvious now that you say it :) Thank you ! On 9 Sep 2024 at 14:17 +0200, pascal-fischer ***@***.***>, wrote: > You don't need to reassign them, if you just clear the groups a key can belong to no group. Groups will not be deleted if the keys are revoked. You can expire keys over the API, yes. > — > Reply to this email directly, view it on GitHub, or unsubscribe. > You are receiving this because you were mentioned.Message ID: ***@***.***>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1222