Extend User app models #10558

Open
opened 2025-12-29 21:33:07 +01:00 by adam · 2 comments
Owner

Originally created by @ihumster on GitHub (Dec 10, 2024).

NetBox version

v4.0.11

Feature type

Data model extension

Triage priority

N/A

Proposed functionality

For security reasons need add analogue ChangeLoggingMixin class for NetBoxUser, NetBoxGroup, ObjectPermission and Token objects.

Use case

  • Security incident investigation
  • Tracking changes to Users, Groups and ObjectPermissions objects

Database changes

New table for store admin change logs

External dependencies

No response

Originally created by @ihumster on GitHub (Dec 10, 2024). ### NetBox version v4.0.11 ### Feature type Data model extension ### Triage priority N/A ### Proposed functionality For security reasons need add analogue `ChangeLoggingMixin` class for `NetBoxUser`, `NetBoxGroup`, `ObjectPermission` and `Token` objects. ### Use case - Security incident investigation - Tracking changes to Users, Groups and ObjectPermissions objects ### Database changes New table for store admin change logs ### External dependencies _No response_
adam added the type: featurenetboxneeds milestonestatus: backlogcomplexity: low labels 2025-12-29 21:33:07 +01:00
Author
Owner

@arthanson commented on GitHub (Apr 24, 2025):

Couple notes: May want to use the following:
class ChangeLoggedModel(ChangeLoggingMixin, CustomValidationMixin, EventRulesMixin, models.Model):

Would add the ChangeLogging as well as custom validation, Event Rules - however for any of these there will have to be refactoring as importing either of these into the User and Group models will cause a circular reference.

@arthanson commented on GitHub (Apr 24, 2025): Couple notes: May want to use the following: class ChangeLoggedModel(ChangeLoggingMixin, CustomValidationMixin, EventRulesMixin, models.Model): Would add the ChangeLogging as well as custom validation, Event Rules - however for any of these there will have to be refactoring as importing either of these into the User and Group models will cause a circular reference.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 24, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Jul 24, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10558