Skip to content

Add security policies edit page

Brian Williams requested to merge bwill/security-policy-edit-page into master

What does this MR do?

For: #335453 (closed)

This MR adds:

  • New route (/:group/:project/-/security/policies/:id/edit) to edit scan execution policies
  • New #edit view in Projects::Security::PoliciesController to allow for existing policies to be edited
  • New service (Security::SecurityOrchestrationPolicies::FetchPolicyService) to retrieve orchestration policies by type + name

To allow users to edit existing policies stored in a policy management project, within the policy editor.

For full background on this feature, see: &5362 (closed)

Screenshots or Screencasts (strongly suggested)

Policy editor does not render, but the policy data does get passed in to the component. I assume that there are additional changes needed on the Vue frontend, and those can be done by a frontend engineer in a follow-up MR since this is behind a feature flag.

Screen_Shot_2021-07-27_at_8.21.35_AM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Sashi Kumar Kumaresan

Merge request reports