Skip to content

Improve Dast site profile creation error message

What does this MR do and why?

Describe in detail what your merge request does and why.

This Merge Request adds a size validation for the password and request headers parameters in the dast site profile creation to improve the error message returned to our users.

The description of issue #342907 (closed) contains more details about the validation process.

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.

  1. Select a project

  2. Go to Security & Compliance > On Demand Scans

  3. Click on New Scan

  4. Click in Select site profile

Screenshot_2022-11-16_at_10.11.08_AM

  1. Click in new profile

Screenshot_2022-11-16_at_10.11.17_AM

  1. Fill the request header field using less than 8 characters.

  2. Check the errors message

Screenshot_2022-11-21_at_3.08.32_PM

To test the password validation

  1. Repeat the steps 1-5

2 .Click in Enable Authentication

Screenshot_2022-11-16_at_10.55.32_AM

  1. Fill the password using less than 8 characters

  2. Check the error message

Screenshot_2022-11-21_at_2.51.49_PM

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