[Frontend] Add rule verification for switching between modes

Why are we doing this work

New policy type has single condition for MVS

This Issue is about adding validation of primary keys and rule keys for pipeline execution policy type

Relevant links

Non-functional requirements

  • Documentation:
  • Feature flag: pipeline_execution_policy_type
  • Performance:
  • Testing: unit tests

Implementation plan

  1. Add folder lib in new folder created after #454281 (closed)
  2. Based on similar examples for approval_policy and scan_execution_policy, add validation utils, from_yaml, toYaml etc
  3. Add default policy yaml in index.js file

Verification steps

Edited by Artur Fedorov