Skip to content

Display DAST additional variables on site profile cards

What does this MR do and why?

This MR adds the optionalVariables field to the DastSiteProfiles query and displays the keys and values of the variables it retrieves in the site_profile_summary cards (when the dast_ui_additional_variables feature flag is enabled).

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Screenshot_2025-01-03_at_15.05.56
no additional variables shown
Screenshot_2025-01-07_at_21.09.41
additional variables shown in site profile cards
Screen_Recording_2025-01-03_at_15.06.20 Screen_Recording_2025-01-07_at_21.10.24
tooltip:
Screenshot_2025-01-07_at_21.27.43

How to set up and validate locally

  1. enable the feature flag:
    echo "Feature.enable(:dast_ui_additional_variables)" | gdk rails c
  2. create a new site profile with additional variables (http://gdk.test:3000/flightjs/Flight/-/security/configuration/profile_library/dast_site_profiles/new)
  3. check that the additional variables appear on the site profile cards
Edited by Miranda Fluharty

Merge request reports

Loading