Skip to content

Add tag_list to dast_scanner_profiles

Marcos Rocha requested to merge mc_rocha-add_tag_list-dast-profile-345430 into master

What does this MR do and why?

To allow On Demand DAST users to select which runners will run DAST scans, we need to set the tags for On Demand scan jobs.

As part of issue #345430 (closed), we are adding the option to select a list of tags when configuring the scanner profile.

The runners tags are stored in the tags table.

This merge request adds the dast_scanner_profiles_tags table to link dast_scanner_profiles and tags.

Migration up

main: == 20221123204959 AddTagListToDastScannerProfiles: migrating ==================
main: -- add_column(:dast_scanner_profiles, :tag_list, :text, {:array=>true, :default=>[]})
main:    -> 0.0045s
main: == 20221123204959 AddTagListToDastScannerProfiles: migrated (0.0051s) =========

Migration down

main: == 20221123204959 AddTagListToDastScannerProfiles: reverting ==================
main: -- remove_column(:dast_scanner_profiles, :tag_list)
main:    -> 0.0017s
main: == 20221123204959 AddTagListToDastScannerProfiles: reverted (0.0022s) =========

Screenshots or screen recordings

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

How to set up and validate locally

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

MR acceptance checklist

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

Edited by Marcos Rocha

Merge request reports

Loading