eclipse-che / che

Kubernetes based Cloud Development Environments for Enterprise Teams
http://eclipse.org/che
Eclipse Public License 2.0
6.99k stars 1.19k forks source link

An error is shown on a remote git operation from Che-code git extension #23244

Closed vinokurig closed 4 days ago

vinokurig commented 1 week ago

Describe the bug

If an SSH key with an INCORRECT passphrase is added to the user namespace, an error is shown on any remote git operation from the Che-code git extension. Also is reproduced if the SSH key with passphrase is entered without the passphrase.

Che version

7.95@next

Steps to reproduce

  1. Generate an SSH key with a passphrase and add it to a git provider.
  2. Go to User Preferences -> SSH keys and enter the key values, but DO NOT ENTER or enter an INCORRECT passphrase.
  3. Start an empty workspace.
  4. Open a terminal and clone a git repository by SSH url. SSH passphrase is asked, enter the correct one.
  5. Form the Che-code editor UI, click the Open Folder button in the explorer widget and select the clone repository folder: projects/<cloned repository>
  6. When the repository is added to the workspace, go to the Git widget and invoke the Git pull command.

See: an error appears: screenshot-devspaces_apps_sandbox-stage_gb17_p1_openshiftapps_com-2024_11_11-14_21_32

Expected behavior

The passphrase input must be used.

Runtime

OpenShift

Screenshots

No response

Installation method

chectl/next

Environment

macOS

Eclipse Che Logs

No response

Additional context

Related pull request https://github.com/che-incubator/che-code/pull/400