Create new Token for the GitLab Kubernetes Agent
What does this MR do and why?
If a token has been compromised the project maintainers should be able to revoke the token and create a new token through the UI (this functionality is already available in the CLI).
This MR adds a possibility to create a new agent token from the UI.
The related designs are here. Note I didn't change the agent installation popup as part of this MR.
Screenshots or screen recordings
The flow:
The agent's tokens list with the new button to Create token:
The agent's tokens empty state with the new button to Create token:
The create token modal:
The install agent instructions:
How to set up and validate locally
- Visit Infrastructure -> Kubernetes clusters and create an agent via Actions button.
- Click in the agent's name to get to the agent's details page.
- Select Tokens tab.
- Click the Create token button to create a new token.
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.
Related to #327152 (closed)
Edited by Anna Vovchenko