Refactor audit events for Repository
requested to merge 374108-add-event-type-information-for-audit-events-using-auditeventservice-in-repository into master
What does this MR do and why?
Adds an audit event type for repository_download_operation
. Refactors associated API helpers to use Gitlab::Audit::Auditor
to build audit events.
NOTE: While repository_download_operation
does not follow the preferred noun_verb
format of new audit events, this event name was already being used in ee/app/controllers/ee/projects/repositories_controller.rb
. It is reused here to prevent duplication and compatibility issues.
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 #374108 (closed)
Edited by Aaron Huntsman