Enable Git streaming audit events in all offerings
Context
Currently, the needs_audit field controls if we should use the new workflow of Git clone/fetch streaming audit events. According to the implementation plan, the logic behind this field does the following:
- If SaaS, then returns false (we just support Self Managed now)
- Only when FF is opened and project group has set the streaming audit event,then returns true
- All any other case return false
We want to change this logic since:
- This audit event should NOT only exist for self-managed, so we would like to remove the SaaS validation.
- We don't need to validate if
project.group.external_audit_event_destinationsexists in this step. Currently, we support two types of audit streaming events: For instances and top-level groups. We should delegate this validation to the AuditEvents::ExternalDestinationStreamer class that determines if the stream audit event is streamable (if it is created by an instance or top-level group, has the licensing capabilities, active audit event destinations, etc.) in later steps.
References
Edited by 🤖 GitLab Bot 🤖