Skip to content

Disable rule mode for unsupported scanners

Alexander Turinske requested to merge 375493-remove-cluster-image-scanning into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Disable rule mode for unsupported scanners

  • in yaml mode, a user can put in whatever they want for the scan property
  • rule mode only supports a specific selection of scanners
  • disable rule mode if a user puts in a scanner that is not supported
  • remove support for cluster_image_scanning in rule mode

Changelog: changed

EE: true

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Page Before After
Scan selection Screen_Shot_2022-09-27_at_1.44.45_PM Screen_Shot_2022-09-27_at_1.44.31_PM
Rule mode with cluster_image_scanning selected Screen_Shot_2022-09-27_at_1.45.12_PM image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Upload a GitLab Ultimate license
  2. Navigate to a project => Security & Compliance => Policies => New policy => Scan Execution Policy
  3. Try to select cluster_image_scanning
  4. Navigate to yaml mode and add cluster_image_scanning and navigate back to rule mode

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 #375493 (closed)

Merge request reports

Loading