Refactor audit events for groups
requested to merge 374106-add-event-type-information-for-audit-events-using-auditeventservice-in-group into master
What does this MR do and why?
Refactors project services to use Gitlab::Audit::Auditor for creating audit events.
- Adds new audit event types under
ee/config/audit_events/types
. - Adds default options for audit context author + target
Verification steps
- Create a group and make sure it has
Ultimate
licence. - Add an external audit event destination for then group by following steps in this doc.
- Now create a subgroup under the group.
- Make sure the deletion protection is on for groups and subgroups.
- Mark the subgroup for deletion by following doc, you will receive an audit event related to this with name
group_deletion_marked
. - Restore the subgroup by following doc, you will receive an audit event with name
group_restored
. - Delete the subgroup permanently by following doc and now you will receive audit event with name
group_destroyed
.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #374106 (closed)
Edited by Hitesh Raghuvanshi