Skip to content

Improve SSH credential support#19042

Merged
sergiou87 merged 10 commits intodevelopmentfrom
improve-ssh-credential-storage
Aug 6, 2024
Merged

Improve SSH credential support#19042
sergiou87 merged 10 commits intodevelopmentfrom
improve-ssh-credential-storage

Conversation

@sergiou87
Copy link
Member

Closes #19019

Description

This PR makes a few changes to improve SSH credential support from Desktop to make its logic more similar to the one we have for generic HTTPS credentials:

  1. Store credentials in the keychain as soon as the user enters them, and then delete them from the keychain if the git operation fails due to an auth error (up until now we would delete them on any error 😓 )
  2. Prevent prompting the user for SSH credentials for non-selected repositories (during background fetching).

Release notes

Notes: [Fixed] Only ask for SSH credentials for the selected repository and only delete them after an authentication error

// operation if there was one pending to be stored.
try {
const result = await fn({
return await fn({
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to await here to make sure errors are caught by try…catch…

@sergiou87 sergiou87 marked this pull request as ready for review August 5, 2024 13:06
Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💖 Nice improvements!

@sergiou87 sergiou87 merged commit 543f898 into development Aug 6, 2024
@sergiou87 sergiou87 deleted the improve-ssh-credential-storage branch August 6, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nuisance prompts for ssh key passphrase & "remember passphrase" doesn't work

2 participants