source-controller/pkg/git
Sanskar Jaiswal 47692530d7 libgit2: fix ssh host key verification regression
Earlier, host key verification could potentially fail if there were
multiple entries in the known_hosts file and if the intended encryption
algorithm wasn't the first entry. This happened because we used the same
hasher object to compute the sum of all the public keys present in the
known_hosts file, which led to invalid hashes, resulting in a mismatch
when compared with the hash of the advertised public key. This is fixed,
by not creating the hasher ourselves and instead delegating that to the
function actually doing the matching, ensuring that a new hasher is used
for each comparison.

Regression introduced in v0.25.0 and reported in
https://github.com/fluxcd/image-automation-controller/issues/378

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-06-08 13:59:32 +05:30
..
gogit pkg/git: introduce concrete and partial commit 2022-05-20 19:52:18 +05:30
libgit2 libgit2: fix ssh host key verification regression 2022-06-08 13:59:32 +05:30
strategy libgit2: enforce context timeout 2022-05-27 13:59:50 +01:00
testdata/git/repo tests: algorithms test coverage for go-git and libgit2 2022-05-09 13:31:54 +01:00
git.go gitrepo: Intro contentConfigChecksum & improvement 2022-05-20 19:52:18 +05:30
git_test.go pkg/git: introduce concrete and partial commit 2022-05-20 19:52:18 +05:30
options.go fix panics on unmanaged http and proxy on managed http 2022-05-27 14:01:23 +05:30
options_test.go Add Host field check in AuthOptions.Validate() 2021-10-27 00:43:31 +05:30