Skip to content

Allow to save and update vulnerability management policy

What does this MR do and why?

Related #470573 (closed)

Allow to remove, save and update vulnerability management policy.

Opening an existing policy can be properly tested once we implement [backend] Add resolver for vulnerability manage... (#465742 - closed).

note: Because the vulnerability management policy itself is behind a feature flag and not used yet and to ease development, this MR only supports using the Security Policies Project Background Worker which lets the parent component of the editor_component.vue handle the persistence.

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

vuln-management-policy-save

How to set up and validate locally

  1. Enable vulnerability_management_policy feature flag at http://gdk.test:3000/rails/features
  2. Enable security_policies_project_background_worker feature flag at http://gdk.test:3000/rails/features
  3. Go to any project
  4. Go to Secure > Policies
  5. Click New policy
  6. Click Select policy on the Vulnerability management policy card
  7. Update the policy
  8. Click Create policy
  9. Validate it starts loading and then redirects you to an open MR
Edited by Lorenz van Herwaarden

Merge request reports

Loading