diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
commit | db384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch) | |
tree | 34beaef37df5f47ccbcf5729d7583aae093cffa0 /lib/gitlab/audit/auditor.rb | |
parent | 54fd7b1bad233e3944434da91d257fa7f63c3996 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
Diffstat (limited to 'lib/gitlab/audit/auditor.rb')
-rw-r--r-- | lib/gitlab/audit/auditor.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/gitlab/audit/auditor.rb b/lib/gitlab/audit/auditor.rb index a59237fbb1f..a035b6face9 100644 --- a/lib/gitlab/audit/auditor.rb +++ b/lib/gitlab/audit/auditor.rb @@ -76,13 +76,11 @@ module Gitlab @authentication_event = @context.fetch(:authentication_event, false) @authentication_provider = @context[:authentication_provider] - # TODO: Remove this code once we close https://gitlab.com/gitlab-org/gitlab/-/issues/367870 return if @is_audit_event_yaml_defined - message = 'Logging audit events without an event type definition will be deprecated soon ' \ - '(https://docs.gitlab.com/ee/development/audit_event_guide/#event-type-definitions)' - - Gitlab::AppLogger.warn(message: message, event_type: @name) + raise StandardError, "Audit event type YML file is not defined for #{@name}. Please read " \ + "https://docs.gitlab.com/ee/development/audit_event_guide/" \ + "#how-to-instrument-new-audit-events for adding a new audit event" end def single_audit |