Disable personal access tokens for enterprise users
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 |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Login as an enterprise user
- Create a personal access token
- Make sure that api is accessible with this token
- Login as an admin of group
- Goto Settings -> Personal access tokens -> Disable personal access tokens
- Make sure that access token created earlier is no longer working
- Make sure that there is no way to create new access tokens.