Skip to content

Check SSH key existence before uploading#7246

Merged
vilmibm merged 3 commits intocli:trunkfrom
vaindil:vaindil/check-ssh-key
Mar 31, 2023
Merged

Check SSH key existence before uploading#7246
vilmibm merged 3 commits intocli:trunkfrom
vaindil:vaindil/check-ssh-key

Conversation

@vaindil
Copy link
Contributor

@vaindil vaindil commented Mar 29, 2023

Fixes #5299 by checking for an SSH key's existence before attempting to upload it.

I had to do some minimal parsing of the key file to match the API's response format--the API returns the key in the format ssh-ed25519 keyHere, but the key file may have additional fields after the format and key that have to be stripped out for the comparison.

@vaindil vaindil requested a review from a team as a code owner March 29, 2023 21:33
@vaindil vaindil requested review from vilmibm and removed request for a team March 29, 2023 21:33
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spurious auth error when SSH key is already registered on account

3 participants