-
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 host certiticate explicitly
Problem: 'libgit2' now performce host certificate checking when connecting to a git hosting through ssh. However, it only checks '~/.ssh/known_hosts` for the list of known hosts, while on NixOS and home-manager known host files are defined in 'GlobalKnownHostsFile' anb 'UserKnownHostsFile' attributes of the OpenSSH config file. As a result, 'update-daemon' failes to check 'github.com' and 'gitlab.com' host certificates. 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
7 changed files
with
278 additions
and
42 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
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
Oops, something went wrong.