Skip to content

Reuse existing DastSiteToken if it already exists

What does this MR do?

this merge request uses an existing dast_site_token from the database rather than creating a new one every time a user tries to validate their dast_site_profile. this improves usability and, since dast site validation is a "foot gun" rather than a security feature, this change is not detrimental.

Related Issue(s)

DAST On-Demand - Opening validation modal should not always create a new validation token

Follow-up Issue(s)

Screenshots or Screencasts (strongly suggested)

2

How to setup and validate locally (strongly suggested)

please follow the documentation guidance.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Philip Cunningham

Merge request reports