Skip to content

Disable personal access tokens for enterprise users

Aboobacker MK requested to merge tachyons_disable_personal_access_tokens into master

What does this MR do and why?

This merge request introduces a new feature that allows group administrators to disable personal access tokens for enterprise users at the group level.

This also adds an extra database query to check if the user is enterprise during PAT authentication.

Resolves #369504 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-04-09_at_2.44.37_PM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Login as an enterprise user
  2. Create a personal access token
  3. Make sure that api is accessible with this token
  4. Login as an admin of group
  5. Goto Settings -> Personal access tokens -> Disable personal access tokens
  6. Make sure that access token created earlier is no longer working
  7. Make sure that there is no way to create new access tokens.
Edited by Adil Farrukh

Merge request reports