FE: Add support for group-level branch exceptions in Policy UI Editor
Why are we doing this work
In the scope of this issue, we would like to extend the current functionality to support branch_exceptions
in group-level Policy Editor UI for both Scan Result and Scan Execution Policies.
Relevant links
Non-functional requirements
-
Documentation: no documentation changes are needed until feature flag is enabled by default -
Feature flag: overall feature should be released behind feature flag security_policies_branch_exceptions
, if FF is disabled we should not considerbranch_exceptions
when evaluating if policy is applicable, -
Performance: -
Testing:
Implementation plan
- MR1:
- frontend ...
Verification steps
- Create a new Group
- Create a new Scan Result Policy in YAML mode and add
branch_exceptions: ["dev", { full_path: "path/to/project", "name": "main" }]
- Create a new Scan Execution Policy in YAML mode and add
branch_exceptions: ["dev", { full_path: "path/to/project", "name": "main" }]
- Go to Policies page and look how Policy Drawer is updated
Edited by Artur Fedorov