revoke|delete user key from admin panel #4705

Closed
opened 2025-12-29 19:19:40 +01:00 by adam · 2 comments
Owner

Originally created by @azatuni on GitHub (Mar 27, 2021).

NetBox version

v2.10.4

Feature type

New functionality

Proposed functionality

Hi,

it will be great to have functionality to revoke/delete user keys. For example from admin panel secrets => user keys => action => delete selected user keys

Use case

In case if the user could be compromised the admin could not only change his password but also revoke/delete his key.

Database changes

No response

External dependencies

No response

Originally created by @azatuni on GitHub (Mar 27, 2021). ### NetBox version v2.10.4 ### Feature type New functionality ### Proposed functionality Hi, it will be great to have functionality to revoke/delete user keys. For example from admin panel secrets => user keys => action => delete selected user keys ### Use case In case if the user could be compromised the admin could not only change his password but also revoke/delete his key. ### Database changes _No response_ ### External dependencies _No response_
adam closed this issue 2025-12-29 19:19:40 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 30, 2021):

We need to update the admin actions for the model to include the "delete selected" action (which is normally available by default).

@jeremystretch commented on GitHub (Mar 30, 2021): We need to update the admin actions for the model to include the "delete selected" action (which is normally available by default).
Author
Owner

@jeremystretch commented on GitHub (Apr 1, 2021):

Ok, I remember why we did this originally. It's because the UserKey manager has had bulk deletion disabled. This helps prevent the accidental deletion of all UserKey instances, which would render the entire set of Secrets inaccessible.

Let's keep this as-is for now to be safe. It may be worth revisiting the idea once the secrets functionality has been split off into its own plugin (see #5278). Also note that user keys can be deleted through the admin UI individually.

@jeremystretch commented on GitHub (Apr 1, 2021): Ok, I remember why we did this originally. It's because the UserKey manager has had bulk deletion disabled. This helps prevent the accidental deletion of all UserKey instances, which would render the entire set of Secrets inaccessible. Let's keep this as-is for now to be safe. It may be worth revisiting the idea once the secrets functionality has been split off into its own plugin (see #5278). Also note that user keys _can_ be deleted through the admin UI individually.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4705