Skip to content

Refactor audit events for Personal Access Tokens

What does this MR do and why?

Refactors Personal Access Token services to use Gitlab::Audit::Auditor for creating audit events. Adds new audit event types under ee/config/audit_events/types.

How to set up and validate locally

  1. Create a personal access token in the user profile section of Gitlab.
  2. Verify the event is created in admin/audit_events.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #374113 (closed)

Edited by Aaron Huntsman

Merge request reports