Skip to content

Update policy_drawer_layout to standardize drawer

Alexander Turinske requested to merge 341932-update-policy-drawer-layout into master

What does this MR do and why?

Update policy_drawer_layout to standardize drawer

  • rename base_policy to policy_drawer_layout
  • move more of scan execution/result policy information to policy_drawer_layout to standardize the drawers
  • update ordering of fields and update titles
  • update cilium_policy_drawer to not rely on policy_drawer_layout as cilium_policy_drawer is going to be removed
  • update tests

Changelog: changed

EE: true

Screenshots or screen recordings

Policy Type Before After
Scan Execution w/ description scan_execution_-_b scan_execution_-_a
Scan Execution w/out description scan_exution_w_out_description_-_b scan_exution_w_out_description_-_a
Scan Result scan_result_-_b scan_result_-_a
Cilium network_2_-_b network_2_-_a

How to set up and validate locally

  1. Ensure your GDK has a GitLab Ultimate license
  2. Turn on the :scan_result_policy feature flag
  3. Follow the snippet for creating scan execution policies and follow the docs to create scan result policies
  4. Navigate to Security & Compliance => Policies

MR acceptance checklist

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

Related to #341932 (closed)

Edited by Alexander Turinske

Merge request reports