Skip to content

Update tooltip for Pre-receive Secret Detection Settings

Dheeraj Joshi requested to merge djadmin-pre-receive-improve-visibility into master

Related issue: #458925 (closed)

What does this MR do and why?

This MR puts the pre-receive secret detection card in a disabled state when the user is a developer or has low privileged access to the project. This is because the feature is only available for project maintainers or owners.

Screenshots or screen recordings

Improved warning for developers and low-privileged users - feature not available

Before After
image image

When license is not available

image

For Owners / Maintainers (no changes)

image

How to set up and validate locally

  1. In rails console enable the feature flags:
    project = Project.find_by_full_path('flightjs/Flight')
    Feature.enable(:pre_receive_secret_detection_beta_release)
    Feature.enable(:pre_receive_secret_detection_push_check, project)
  2. Enable the instance settings from the admin account, it's available at security & compliance settings page. Example: http://gdk.test:3000/admin/application_settings/security_and_compliance#
  3. Now login with a developer account, and visit the security configuration page http://gdk.test:3000/flightjs/Flight/-/security/configuration
  4. The pre-receive secret detection feature should disabled and a tooltip should be shown.
Edited by Dheeraj Joshi

Merge request reports