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
- 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 .
- Go to Project -> Settings -> CI CD
- Create Variable
- 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
- Modify Variable
- repeat step 4
- Delete Variable
- repeat step 4
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #363090 (closed)
Edited by Harsimar Sandhu