Revoke an Agent Token from the UI
What does this MR do and why?
The MR adds a possibility to revoke agent tokens from the UI using the Revoke token button from the Tokens tab on the Agent page.
Definition of done
-
The revoke button is present in the agent access token list. -
The revoke button is disabled for users with less than maintainer role. -
For users with at least maintainer rights clicking on the button opens a confirmation popup. -
The popup contains an input to confirm the revoke action and a cancel button. -
After the token was revoked, the token list gets updated.
Screenshots or screen recordings
The flow:
The Revoke token button in the tokens list:
Maintainer | Developer |
---|---|
The revoke confirmation modal:
Initial state | Correct token name entered |
---|---|
The successful revoke toast:
How to set up and validate locally
- Visit Infrastructure -> Kubernetes Clusters.
- Select an agent from the agents list or create one using Actions button.
- On the agent's page select the Tokens tab.
- Click the Revoke token button and verify the result.
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.
Review progress:
-
UX review -
UI text review -
frontend developer review -
frontend maintainer review -
documentation review -
security review
Related to #336641 (closed), #296741 (closed)
Edited by Anna Vovchenko