Commit b7535729 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'mw/ff_external_audit_events_namespace-docs' into 'master'

Enable audit log streaming by default

See merge request gitlab-org/gitlab!75728
parents d9c3d2c8 3d56e837
...@@ -6,11 +6,11 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -6,11 +6,11 @@ info: To determine the technical writer assigned to the Stage/Group associated w
# Audit event streaming **(ULTIMATE)** # Audit event streaming **(ULTIMATE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/332747) in GitLab 14.5 [with a flag](../administration/feature_flags.md) named `ff_external_audit_events_namespace`. Disabled by default. > - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/332747) in GitLab 14.5 [with a flag](../administration/feature_flags.md) named `ff_external_audit_events_namespace`. Disabled by default.
> - [Enabled on GitLab.com and self-managed](https://gitlab.com/gitlab-org/gitlab/-/issues/338939) in GitLab 14.7.
FLAG: FLAG:
On self-managed GitLab, by default this feature is not available. To make it available per group, ask an administrator to [enable the feature flag](../administration/feature_flags.md) named `ff_external_audit_events_namespace`. On GitLab.com, this feature is not available. On self-managed GitLab, by default this feature is available. To hide the feature per group, ask an administrator to [disable the feature flag](../administration/feature_flags.md) named `ff_external_audit_events_namespace`. On GitLab.com, this feature is available.
You should not use this feature for production environments.
Event streaming allows owners of top-level groups to set an HTTP endpoint to receive **all** audit events about the group, and its Event streaming allows owners of top-level groups to set an HTTP endpoint to receive **all** audit events about the group, and its
subgroups and projects. subgroups and projects.
......
...@@ -56,7 +56,7 @@ module EE ...@@ -56,7 +56,7 @@ module EE
def stream_to_external_destinations def stream_to_external_destinations
return if entity.nil? return if entity.nil?
return unless ::Feature.enabled?(:ff_external_audit_events_namespace, group_entity) return unless ::Feature.enabled?(:ff_external_audit_events_namespace, group_entity, default_enabled: :yaml)
return unless group_entity&.licensed_feature_available?(:external_audit_events) return unless group_entity&.licensed_feature_available?(:external_audit_events)
AuditEvents::AuditEventStreamingWorker.perform_async(id) AuditEvents::AuditEventStreamingWorker.perform_async(id)
......
...@@ -21,7 +21,7 @@ module AuditEvents ...@@ -21,7 +21,7 @@ module AuditEvents
group = group_entity(audit_event) group = group_entity(audit_event)
return if group.nil? # Do nothing if the event can't be resolved to a single group. return if group.nil? # Do nothing if the event can't be resolved to a single group.
return unless ::Feature.enabled?(:ff_external_audit_events_namespace, group) return unless ::Feature.enabled?(:ff_external_audit_events_namespace, group, default_enabled: :yaml)
return unless group.licensed_feature_available?(:external_audit_events) return unless group.licensed_feature_available?(:external_audit_events)
group.external_audit_event_destinations.each do |destination| group.external_audit_event_destinations.each do |destination|
......
...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/338939 ...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/338939
milestone: '14.4' milestone: '14.4'
type: development type: development
group: group::compliance group: group::compliance
default_enabled: false default_enabled: true
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment