Skip to content

Add "Available on-demand" badge on Security Configuration Page

Artur Fedorov requested to merge 354874-available-badge-security-page into master

What does this MR do and why?

This MR resolves #354874 (closed)

  1. Feature cards in security configuration section now have an option to add info badges.
  2. This MR adds info badge for DAST configuration section according to new design
  3. Badges can be added either via frontend or via backend.
  4. Feature needs to have a badge property in order to display info badges on the card (see attachment).
  5. New component feature-card-badge handles logic for conditional tooltip rendering and href options. It can accept a link via property on the badge object or via additional property or defaults to DAST default link to on-demand-scans.
  6. Layout of the feature card adjusted automatically based on configuration.

Describe in detail what your merge request does and why.

Screenshots or screen recordings

before
before
after
Screenshot_2022-03-31_at_12.56.32
after
on-demand_badge

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

  1. Go to any project /root/$PROJECT/
  2. Go to /root/$PROJECT/-/security/configuration
  3. Scroll down to DAST configuration

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 Artur Fedorov

Merge request reports