Add method to pseudonymize page url and referer url

Merged Rajendra Kadam requested to merge page-referrer-psdym into master

What does this MR do?

Relates to #338319 (closed)

The method is used in !68618 (merged)

This MR adds a helper method to mask current page URLs for MRs/issues/project/group/subgroups and file paths in the repo.

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?


Availability and Testing


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 Rajendra Kadam

Merge request reports