Skip to content

Instance streaming - Update destination list, create and delete queries

What does this MR do and why?

Update the graphql query to pull instance level audit event streaming destinations if they are available. If not it will show the empty state and allow users to add destinations

Screenshots or screen recordings

Empty state

Audit-Events--Admin-Area--GitLab

List destinations

Audit-Events--Admin-Area--GitLab__1_

Add a destination

Audit-Events--Admin-Area--GitLab

How to set up and validate locally

  1. Enable the both FE and BE feature flag

    Feature.enable(:instance_streaming_audit_events)
    Feature.enable(:ff_external_audit_events)
  2. Navigate to Admin menu and go to Monitoring -> Audit Events

  3. Ensure that the Streams tab is visible.

  4. Click on the Streams tab

  5. Ensure that it shows the empty state and clicking on to add a destination will show the form

  6. Add a URL, test different variations, I use https://webhook.site/ to test events are received

  7. Ensure that the new URL is listed and does not refresh page

  8. Trigger an instance audit event and confirm it is received (eg create a new group)

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

Edited by Nate Rosandich

Merge request reports