Skip to content

Update audit event for secret push protection

Dheeraj Joshi requested to merge dj/rename-pre-receive-audit-event into master

Related to #462289 (closed)

What does this MR do and why?

Following the issue, we are changing all references of "pre-receive secret detection" to "secret push protection".

This merge request addresses the update in the naming of audit events.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

pry(main)> Gitlab::CurrentSettings.update!(pre_receive_secret_detection_enabled: true) # to ensure feature is enabled instance-wide
pry(main)> project = Project.find(PROJECT_ID)
pry(main)> Feature.enable(:pre_receive_secret_detection_push_check, project) 

(or go in to ee/lib/gitlab/checks/secrets_check.rb and comment out lines 43, 45, 46, 48)

  1. Ensure your instance has an Ultimate license so that audit events are available.
  2. In your test project, make a change and commit it, including the bypass flag [skip secret detection] in the commit message
  3. Navigate to Secure > Audit events
  4. Verify that the audit event appears
Edited by Dheeraj Joshi

Merge request reports