FE: Add Policy Scope to UI Policy Editor
Why are we doing this work
In the scope of Security Policy Scopes (&5510), we would like to allow users to save Policy YAML with policy scope in it. Based on designs and descriptions from the Epic, we would like to be able to specify policy scope based on:
- assigned compliance frameworks,
- list with included projects,
- list with excluded projects.
policy_scope:
compliance_frameworks:
- id: 12345
- id: 23456
projects:
including:
- id: 12345
- id: 23456
excluding:
- id: 34567
- id: 45678
In the scope of this issue, we want to extend Policy UI editor with ability to configure policy_scope
and seamless conversion between UI and YAML modes, as well as updates needed to Policy Drawer.
Relevant links
Non-functional requirements
-
Documentation: -
Feature flag: we should only show updated editor when we have security_policies_policy_scope
feature flag enabled, -
Performance: -
Testing:
Implementation plan
-
MR1: frontend TBD
Verification steps
TBD
Edited by Alan (Maciej) Paruszewski