che-server icon indicating copy to clipboard operation
che-server copied to clipboard

Remove redundan PATs on refresh mode

Open vinokurig opened this issue 7 months ago • 3 comments

What does this PR do?

Iterate over personal access token secrets on refresh function. Remove outdated token secrets except the latest refreshed token secret.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

fixes https://github.com/eclipse-che/che/issues/23027

How to test this PR?

  • Deploy che with the pr image: quay.io/eclipse/che-server:pr-
  • Configure gitlab oauth
  • Apply refresh mode
  • Start a workspace from gitlab repository with a devfile.
  • Go to Dashboard user preferences -> personal access tokens
  • See: only one personal access token item is present in the list

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

vinokurig avatar Jul 18 '24 11:07 vinokurig