diff --git a/doc/administration/logs/index.md b/doc/administration/logs/index.md index a788c775d788f209d18629d11e34d54c20e14c82..25ef240686a565effd7b2e155a917fc61b090c0c 100644 --- a/doc/administration/logs/index.md +++ b/doc/administration/logs/index.md @@ -1051,7 +1051,7 @@ This file is located at: - `/var/log/gitlab/gitlab-rails/epic_work_item_sync.log` on Linux package installations. - `/home/git/gitlab/log/epic_work_item_sync.log` on self-compiled installations. -## `secret_detection.log` +## `secret_push_protection.log` DETAILS: **Tier:** Ultimate @@ -1059,12 +1059,12 @@ DETAILS: > - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/137812) in GitLab 16.7. -The `secret_detection.log` file logs information related to [Secret Push Protection](../../user/application_security/secret_detection/secret_push_protection/index.md) feature. +The `secret_push_protection.log` file logs information related to [Secret Push Protection](../../user/application_security/secret_detection/secret_push_protection/index.md) feature. This file is located at: -- `/var/log/gitlab/gitlab-rails/secret_detection.log` on Linux package installations. -- `/home/git/gitlab/log/secret_detection.log` on self-compiled installations. +- `/var/log/gitlab/gitlab-rails/secret_push_protection.log` on Linux package installations. +- `/home/git/gitlab/log/secret_push_protection.log` on self-compiled installations. ## Registry logs diff --git a/ee/lib/gitlab/secret_detection_logger.rb b/ee/lib/gitlab/secret_detection_logger.rb index af8c5d2309c32febc255016e9d5cbce254ff9a2c..3527db490ecdff317a8cec68603c6d58345ea668 100644 --- a/ee/lib/gitlab/secret_detection_logger.rb +++ b/ee/lib/gitlab/secret_detection_logger.rb @@ -3,7 +3,7 @@ module Gitlab class SecretDetectionLogger < Gitlab::JsonLogger def self.file_name_noext - 'secret_detection' + 'secret_push_protection' end end end diff --git a/ee/spec/lib/gitlab/secret_detection_logger_spec.rb b/ee/spec/lib/gitlab/secret_detection_logger_spec.rb index 4701773ae10e7f853cab73df4c92f3a4a1f40e20..25a0804c99fb1f954fca93e6084fca5c591371d5 100644 --- a/ee/spec/lib/gitlab/secret_detection_logger_spec.rb +++ b/ee/spec/lib/gitlab/secret_detection_logger_spec.rb @@ -9,7 +9,7 @@ describe '#file_name_noext' do it 'returns log file name without extension' do - expect(described_class.file_name_noext).to eq('secret_detection') + expect(described_class.file_name_noext).to eq('secret_push_protection') end end end