Skip to content

Resolve "Create audit events for manually triggered housekeeping"

What does this MR do and why?

Adds a project level audit event for when housekeeping is triggered by a user action. e.g an API request or request from the web UI.

related to: #390761 (closed)

How to set up and validate locally

From web:

  1. Trigger housekeeping for a project (Settings -> General -> Expand Advanced -> Click Run housekeeping or Prune unreachable objects)
  2. Check for the audit event (Security and Compliance -> Audit events)

Via api:

  1. Trigger housekeeping via api Something like
curl -XPOST 'http://127.0.0.1:3000/api/v4/projects/31/housekeeping?private_token=someprivatetoken'
  1. Check for the audit event (Security and Compliance -> 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 #390761 (closed)

Edited by Jerry Seto

Merge request reports