Skip to content

Add prefix to feed and incoming mail tokens

Dominic Couture requested to merge dcouture-prefix-user-tokens into master

What does this MR do and why?

Resolves Add prefix to feed tokens (#376749 - closed)
Resolves Add prefix to incoming email tokens (#376750 - closed)

It adds a prefix to the feed token and incoming mail token. I would have done one at the time but they were next to each other in the same file and the change was small. Happy to split it up if the reviewer thinks it's a better idea!

Screenshots or screen recordings

The tokens in the screenshots below were revoked before posting.

There's a change in color between the screenshots but the prefixes are what matters :)

Before After
image image

How to set up and validate locally

  1. Enable Incoming Mail in gitlab.yml (incoming_mail.enabled = true)
  2. Visit http://gdk.test:3000/-/profile/personal_access_tokens and reset the existing tokens
  3. Observe that the new ones have prefixes

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 Dominic Couture

Merge request reports