Skip to content

Draft: Update policy-editor-layout to include rule mode

Alexander Turinske requested to merge scan-execution-scan-mode into master

What does this MR do and why?

Update policy-editor-layout to include rule mode default fields

  • the rule mode for policies should look exactly the same except for the rules and actions
  • incorporate the name, description, and enabled toggle into the default policy-editor-layout rule-mode configuration so that it does not need to be reimplemented every time
  • add new feature flag for scan execution rule mode

Related to #359884 (closed)

Screenshots or screen recordings

Page Before After
Scan Execution Policies - Rule Mode it didn't exist before Screen_Shot_2022-04-19_at_09.11.24
Scan Result Policies - Rule Mode Screen_Shot_2022-04-19_at_09.12.06 No visual change

How to set up and validate locally

  1. Ensure your GDK has a GitLab Ultimate license uploaded
  2. Navigate to a project => Security and Compliance => Policies => New policy
  3. Select Scan Execution Policy

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alexander Turinske

Merge request reports