Skip to content

Event type information in ci variable audit event

What does this MR do and why?

Adds event type information in streaming audit events when ci variable is added/removed/modified.

How to set up and validate locally

  1. Setup external destination using https://docs.gitlab.com/ee/administration/audit_event_streaming.html#use-the-gitlab-ui or https://docs.gitlab.com/ee/administration/audit_event_streaming.html#use-the-api .
  2. Go to Project -> Settings -> CI CD
  3. Create Variable
  4. Check audit event is created and streamed with correct event type. Also check audit event is visible at http://localhost:3000/admin/audit_logs and log is present in audit_json.log
  5. Modify Variable
  6. repeat step 4
  7. Delete Variable
  8. repeat step 4
  9. Repeat steps 3-8 for Group CI CD Variable.

Below table lists down event type info

Action Group event type Project event type
Create 'ci_variable_created' 'ci_group_variable_created'
Update 'ci_variable_updated' 'ci_group_variable_updated'
Delete 'ci_variable_deleted' 'ci_group_variable_deleted'

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 #363090 (closed)

Edited by Harsimar Sandhu

Merge request reports

Loading