Event type info in group deploy token audit events
What does this MR do and why?
Add event type information in streaming audit event while creation and revoking group deploy token
action | event type |
---|---|
creation | group_deploy_token_created |
revoke | group_deploy_token_revoked |
delete | group_deploy_token_destroyed |
creation failed | group_deploy_token_creation_failed |
How to set up and validate locally
- Create a deploy token from Group -> Settings -> Repository.
- Check streamed audit event contains correct event type information both in payload and headers.
- Check audit event is saved in database and is visible at {{base url}}/admin/audit_logs.
- Revoke a deploy token from UI.
- Repeat step 2 and 3.
- Create Deploy token using API https://docs.gitlab.com/ee/api/deploy_tokens.html#create-a-group-deploy-token
- Repeat step 2 and 3
- Delete Deploy token using API https://docs.gitlab.com/ee/api/deploy_tokens.html#delete-a-group-deploy-token
- Repeat step 2 and 3
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 #363087 (closed)
Edited by Harsimar Sandhu