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

Switch to crypto/ssh for parsing of private keys #1404

Merged
merged 1 commit into from May 10, 2021
Merged

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented May 10, 2021

This changes the logic for the parsing of private keys, as already
done for the source-controller, so that it is able to recognize and
work with a wider range of key formats instead of returning a vague
error:

$ flux bootstrap git [..]
✗ ssh: this private key is passphrase protected

A patch for this was already submitted and merged in go-git/go-git,
but is not made available in a release yet:
go-git/go-git#298

Fixes #1401

@hiddeco hiddeco added bug Something isn't working area/git Git related issues and pull requests area/bootstrap Bootstrap related issues and pull requests labels May 10, 2021
@hiddeco hiddeco requested a review from stefanprodan May 10, 2021 13:25
This changes the logic for the parsing of private keys, as already
done for the source-controller, so that it is able to recognize and
work with a wider range of key formats instead of returning a vague
error:

```console
$ flux bootstrap git [..]
✗ ssh: this private key is passphrase protected
```

A patch for this was already submitted and merged in `go-git/go-git`,
but is not made available in a release yet:
go-git/go-git#298

Signed-off-by: Hidde Beydals <hello@hidde.co>
@hiddeco hiddeco merged commit 99bdb20 into main May 10, 2021
@hiddeco hiddeco deleted the private-key-password branch May 10, 2021 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bootstrap Bootstrap related issues and pull requests area/git Git related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Any plan on supporting passphrase protected ssh keys
2 participants