Audit when pinned AI item version is updated
What does this MR do and why?
This MR adds audit events when an enabled AI item version pin is updated.
References
Add Audit Event when project/group updates vers... (#584495 - closed)
Screenshots or screen recordings
| View audit events with AI item is enabled, and then the enabled item later updated to newer version |
|---|
|
How to set up and validate locally
- Create a new AI catalog item, for example, an agent https://docs.gitlab.com/user/duo_agent_platform/agents/custom/#create-an-agent
- Enable the item for a project https://docs.gitlab.com/user/duo_agent_platform/agents/custom/#enable-an-agent
- In project, go Secure > Audit events, notice audit event when the item was enabled will say something similar to:
Enabled AI agent for project: Pinned to version 1.0.0 (by Administrator)
- Edit the agent's prompt at least once https://docs.gitlab.com/user/duo_agent_platform/agents/custom/#edit-an-agent
- Update the agent to the latest version within the project: From the edit agent page, select View latest version, then Update to version n.n.n*
- In project, go Secure > Audit events, notice audit event when the item was enabled will say something similar to:
Updated enabled AI agent to version 1.1.0 (by Administrator)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #584495 (closed)
