Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitlab Api is requested if any (not Gitlab) PAT is added. #23374

Open
vinokurig opened this issue Mar 5, 2025 · 0 comments · May be fixed by eclipse-che/che-server#779
Open

Gitlab Api is requested if any (not Gitlab) PAT is added. #23374

vinokurig opened this issue Mar 5, 2025 · 0 comments · May be fixed by eclipse-che/che-server#779
Assignees
Labels
area/che-server kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.

Comments

@vinokurig
Copy link
Contributor

vinokurig commented Mar 5, 2025

Describe the bug

Gitlab getUser() API is requested, even if a non Gitlab token is added or a token secret is generated via a non Gitlab oauth. The request is called when we fetch username and email to fill the workspace's gitconfig.

Che version

7.99@latest

Steps to reproduce

  1. Edit the CheCluster yaml with:
spec:
  components:
    cheServer:
      logLevel: trace
  1. Go to the user preferences and add a non Gitlab personal access token.
  2. Go to the che pod logs.

See: Gitlab api request is executed:

2025-03-06 08:08:33,265[nio-8080-exec-1]  [TRACE] [o.e.c.a.f.s.g.GitlabApiClient 78]    - executeRequest=https://gitlab.com/api/v4/user GET

Expected behavior

The api request must not be executed.

Runtime

OpenShift

Screenshots

No response

Installation method

chectl/latest, chectl/next

Environment

macOS

Eclipse Che Logs

Additional context

No response

@vinokurig vinokurig added the kind/bug Outline of a bug - must adhere to the bug report template. label Mar 5, 2025
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Mar 5, 2025
@ibuziuk ibuziuk added severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. area/che-server and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Mar 5, 2025
@ibuziuk ibuziuk moved this to 📅 Planned in Eclipse Che Team A Backlog Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-server kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Projects
Status: 📅 Planned
Development

Successfully merging a pull request may close this issue.

3 participants