-
Notifications
You must be signed in to change notification settings - Fork 623
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
Azure DevOps: SSH Unable to extract public key from private key (after upgrade from flux 0.13.3 to 0.15.1) #1543
Comments
Does the header of your private key start with |
It starts with |
@frbosch how did you generated that key? |
With flux cli (command is in the description of this task), not sure what this uses internally. Guess openssl?
|
Not sure, it seems I also got issues while upgrading. Previously 2 repos worked, but after redeploy of flux stopped with #1545 |
It's working for us in v0.14.2 |
I also have the same issue and my private key has the following header I looked at the breaking changes and did not see anything about this topic until I upgraded. Is there a quick hack we can do to fix this? |
I have been digging into this most of the day, and it seems that it is yet another issue with the relatively complex build requirements for With the information I have collected thus far, it seems that when we switched from Alpine to Debian for the source-controller image because of other issues with libgit2, it now no longer is capable of using private keys in the (modern) PKCS#8 and "OpenSSH" formats. A workaround that is worth giving a try is to try using a key that has a PKCS#1 format, so the "classic" |
Identified the root cause of the issue, dating back to 2012. The
Will try to use the packages from unstable, build |
We forgot to post an update to this specific issue, but after the pull request that closed this was merged, another release was made to the source-controller. Updating the controller to |
Release 0.15.3 works for me now. Thanks a lot, great work. |
Describe the bug
I did try to update an existing cluster which is already controlled by fluxcd 0.13.3. I did not change the secret or anything, but the gitrepository sync stopped working.
To Reproduce
I did execute the following:
brew upgrade fluxcd/tap/flux
flux install --components-extra=image-reflector-controller,image-automation-controller --export > ./flux-system/gotk-components.yaml
Now the i get this:
kubectl get gitrepository -nflux-system
... unable to clone 'ssh://[email protected]/v3/<correct path removed>, error: Failed to authenticate SSH session: Unable to extract public key from private key.
After rollback to v0.13.3 it works again.
Additional context
Provisioning of a newly created cluster fails also. With the same error.
I create the git repository with the following command:
Below please provide the output of the following commands:
The text was updated successfully, but these errors were encountered: