Inconsistent value of SCM provider name in the Personal Access Tokens list. #22802
Labels
area/che-server
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P2
Has a minor but important impact to the usage or development of the system.
Describe the bug
Oauth token secrets are generated with a random string instead of provider name in the token name annotation.
Che version
7.80@latest
Steps to reproduce
See: a random string is displayed as provider name value:
![screenshot-eclipse-che apps cluster-9zjxb dynamic redhatworkshops io-2024 02 02-14_35_52](https://private-user-images.githubusercontent.com/7668752/301847148-a1c4db10-0368-4d5f-9ab9-bf5aa5d7da41.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3NzM0MTMsIm5iZiI6MTcyNDc3MzExMywicGF0aCI6Ii83NjY4NzUyLzMwMTg0NzE0OC1hMWM0ZGIxMC0wMzY4LTRkNWYtOWFiOS1iZjVhYTVkN2RhNDEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjdUMTUzODMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzkyZTA4ZmZkODUwNWJkNzk0Y2JlYzM0MjJiZjZmM2MxMzU5ODVkM2JmOTYyNjBlYjVmNWU1NDRhNTA4MDE1ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.35os4sAMmqWSJYLF2S8szoQCwSsXAvr-L1ggRm3Ozso)
Expected behavior
Proper provider name must be shown.
Runtime
OpenShift
Screenshots
No response
Installation method
chectl/next
Environment
macOS
Eclipse Che Logs
No response
Additional context
I see several solutions:
oauth2-github
. Theoauth2
prefix would be a flag to distinguish oauth tokens from PAT.token name
annotation toprovider name
and adding a new annotationis oath token
with a boolean flag. This would require a migration mechanism to support previously added token secrets.The text was updated successfully, but these errors were encountered: