Disable PAT creation when FIPS is enabled
What does this MR do and why?
Describe in detail what your merge request does and why.
Part 2 of #351350 (closed). Part 1 MR was !97299 (merged).
This MR prevents the creation of new Personal Access Tokens, Project Access Tokens, Group Access Tokens, and Impersonation Tokens and removes the relevant navigation items.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable FIPS mode in GDK:
FIPS_MODE=1 gdk restart
- Navigate to the locations mentioned in the screenshots table.
- Observe that the menu items are not available.
- You may also manually navigate to a relevant URL and note that it 404's.
URL examples:
<group>/<project>/-/settings/access_tokens
groups/<group>/-/settings/access_tokens
/-/profile/personal_access_tokens
-
/admin/users/<username>/impersonation_tokens
.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Drew Blessing