Add instance namespace filters for streaming audit events

What does this MR do and why?

Add instance namespace filters for streaming audit events, feature parity with group audit event streaming (/admin/audit_logs?tab=streams)

Changelog: added EE: true

Relies on backend changes: !198000 (merged)

References

Screenshots or screen recordings

Before After
image image

image

How to set up and validate locally

[Pre-requisites]: GitLab Ultimate / EE, feature flags enabled: use_consolidated_audit_event_stream_dest_api and audit_events_external_destination_streamer_consolidation_refactor and audit_events_fix_streaming_filters

  1. Navigate to http://localhost:3000/admin/audit_logs?tab=streams
  2. Create a new audit event streaming destination for any of: http, aws, gcp
  3. Use the Filter by groups or projects filter option
  4. It should display groups and projects available through the Instance
  5. Setup a https://webhook.site/ HTTP destination to get audit events sent to (or GCP, AWS S3)
  6. Note that it only receives audit events from this namespace

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.

Edited by Andrew Jung

Merge request reports

Loading