Skip to content

feat: add tools for retrieving audit events

What does this merge request do and why?

feat: add tools for retrieving audit events

This change adds a new tool called ListInstanceAuditEvents, ListGroupAuditEvents and ListProjectAuditEvents that allows users to view audit events in GitLab projects, group or instance level.

The tool can be accessed through the Duo Agentic Chat / Duo Workflow interface and works as a read-only operation.

The implementation includes proper input validation, error handling, and comprehensive test coverage. The tool supports identifying projects either by project ID or GitLab URL, making it flexible for different use cases.

How to set up and validate locally

  1. Run the AI Gateway with this branch
  2. Open Duo Agentic Chat in VSCode, connected to a project with audit events in your GDK
  3. Ask a question related to audit events, like "Please give me the list of audit events for this project."

Screenshot and recordings

Screenshot_2025-07-04_at_8.56.42_AM

https://www.youtube.com/watch?v=u6CjMT1f2WI

Merge request checklist

  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/548656

Edited by Nate Rosandich

Merge request reports

Loading