Skip to content

Implement delete and toggle action for Security exclusions

Dheeraj Joshi requested to merge djadmin-exclusion-deletion into master

Related issue: #480035 (closed)

What does this MR do and why?

This MR implements

  • Delete Action: Allows the removal of an exclusion item from the list.
  • Toggle Status Action: Enables or disables an exclusion.

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

Delete warning modal

image.png

Toggle / Deletion in action

exclusion_toggle_delete.mov

How to set up and validate locally

  1. Enable feature flag
Feature.enable(:secret_detection_project_level_exclusions)
  1. Visit Secret detection configuration page for a project http://gdk.test:3000/flightjs/Flight/-/security/configuration/secret_detection
  2. Make sure you have exclusion in the list, or add one.
  3. Now you should be able to toggle the status of the exclusion as well as delete the created exclusion.
  4. Note: You may require to restart rails with gdk restart rails-web or hard reload the browser to see these changes.
Edited by Dheeraj Joshi

Merge request reports

Loading