-
Notifications
You must be signed in to change notification settings - Fork 188
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
"Unable to extract public key from private key" for ed25519 & libgit2 #399
Comments
This may be a triangular issue around "SSH authentication" in general, see: fluxcd/flux2#1593 and #397 |
Hi, I've been testing the on going libgit2 changes in #437 and tried to reproduce this issue. I can confirm that this issue gets resolved with the new libgit2 and its dependencies.
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
creationTimestamp: "2021-09-28T19:19:55Z"
finalizers:
- finalizers.fluxcd.io
generation: 1
name: podinfo
namespace: flux-system
resourceVersion: "13668630"
uid: b6d35c84-3c24-43e4-8941-49d460f04bfb
spec:
gitImplementation: libgit2
interval: 30s
ref:
branch: master
secretRef:
name: ssh-ed25519-creds
timeout: 20s
url: ssh://git@github.com/darkowlzz/podinfo
status:
artifact:
checksum: fa7a0347e046eab3dd768998fc9252b2c0dd5aef
lastUpdateTime: "2021-09-28T19:20:00Z"
path: gitrepository/flux-system/podinfo/627d5c4bb67b77185f37e31d734b085019ff2951.tar.gz
revision: master/627d5c4bb67b77185f37e31d734b085019ff2951
url: http://source-controller.flux-system.svc.cluster.local./gitrepository/flux-system/podinfo/627d5c4bb67b77185f37e31d734b085019ff2951.tar.gz
conditions:
- lastTransitionTime: "2021-09-28T19:20:00Z"
message: 'Fetched revision: master/627d5c4bb67b77185f37e31d734b085019ff2951'
reason: GitOperationSucceed
status: "True"
type: Ready
observedGeneration: 1
url: http://source-controller.flux-system.svc.cluster.local./gitrepository/flux-system/podinfo/latest.tar.gz This was tested on a raspberry pi arm k3s cluster. Tried the same with the latest release {"level":"error","ts":"2021-09-28T19:36:19.036Z","logger":"controller.gitrepository","msg":"Reconciler error","reconciler group":"source.toolkit.fluxcd.io","reconciler kind":"GitRepository","name":"podinfo","namespace":"flux-system","error":"unable to clone 'ssh://git@github.com/darkowlzz/podinfo', error: Failed to authenticate SSH session: Unable to extract public key from private key."} |
Can we have a unit test to detect regressions? |
Added a test for this in #445 along with some necessary improvements based on the behavior of the test 🙂 . |
The latest release of the source-controller ( |
While trying to reproduce fluxcd/image-automation-controller#186, I found that source-controller also seems not to be able to use ed25519 keys.
Steps to reproduce:
You may want to install the deploy key at the repo, but I don't think it's necessary to do so to reproduce the problem.
In the
GitRepository
status I see this message --The text was updated successfully, but these errors were encountered: