You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While experimenting with ImageUpdateAutomation, I ran into the following issue. IUA uses only libgit2 (since fluxcd/image-automation-controller#177) while the GitRepository defaults to go-git. My repos were able to fetch and sync correctly on the GitRepository -> Kustomization flow, but I repeatedly got errors when IUA was trying to sync. It failed during the git clone with a message simply indicating auth error: EOF.
After doing some digging, I found it was an issue with the configured known_hosts in the SSH credential secret referenced on the GitRepository. It appears that libgit2 only supports one format while go-fit supports both formats.
I had originally created my known_hosts config with the hashed option, but it appears libgit2 doesn't know how to use it. By swapping to the first option, it worked. My GitRepository was still using the default (go-git), so appears to be happy with it too.
To Reproduce
Steps to reproduce the behaviour:
Configure the known_hosts for the SSH credential using ssh-keyscan -H <host>.
Create your GitRepository and ImageUpdateAutomation objects.
Wait for the next sync. You'll see the GitRepository will sync, but the IUA will fail with a message of auth error: EOF.
Expected behavior
Both known_hosts formats should be supported or at least an error message informing the administrator to use the other method of creating the file.
The text was updated successfully, but these errors were encountered:
Describe the bug
While experimenting with
ImageUpdateAutomation
, I ran into the following issue. IUA uses only libgit2 (since fluxcd/image-automation-controller#177) while theGitRepository
defaults to go-git. My repos were able to fetch and sync correctly on theGitRepository -> Kustomization
flow, but I repeatedly got errors when IUA was trying to sync. It failed during the git clone with a message simply indicatingauth error: EOF
.After doing some digging, I found it was an issue with the configured
known_hosts
in the SSH credential secret referenced on the GitRepository. It appears that libgit2 only supports one format while go-fit supports both formats.known_hosts without hashed hosts
known_hosts with hashed hosts
I had originally created my
known_hosts
config with the hashed option, but it appears libgit2 doesn't know how to use it. By swapping to the first option, it worked. MyGitRepository
was still using the default (go-git), so appears to be happy with it too.To Reproduce
Steps to reproduce the behaviour:
known_hosts
for the SSH credential usingssh-keyscan -H <host>
.auth error: EOF
.Expected behavior
Both known_hosts formats should be supported or at least an error message informing the administrator to use the other method of creating the file.
The text was updated successfully, but these errors were encountered: