-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore] Check git host certificate explicitly
Problem: 'libgit2' now performs host certificate checking prior to connection to a git host through ssh. However, it only uses '~/.ssh/known_hosts' to get the list of known hosts, while in NixOS and home-manager known host files are defined in 'GlobalKnownHostsFile' and 'UserKnownHostsFile' attributes of the ssh config file. As a result, in some cases 'update-daemon' fails to check 'github.com' and 'gitlab.com' host certificates and throws an error. Solution: Explicitly check git host certificate against the list of known hosts from 'GlobalKnownHostsFile' and 'UserKnownHostsFile' taken from '/etc/ssh/ssh_config' and '~/.ssh/config' respectively using 'ssh2-rs'.
- Loading branch information
Showing
5 changed files
with
248 additions
and
39 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.