Update tooltip for Pre-receive Secret Detection Settings
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 |
---|---|
When license is not available
For Owners / Maintainers (no changes)
How to set up and validate locally
- 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)
- 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#
- Now login with a developer account, and visit the security configuration page
http://gdk.test:3000/flightjs/Flight/-/security/configuration
- The pre-receive secret detection feature should disabled and a tooltip should be shown.
Edited by Dheeraj Joshi