I am trying to store my git credentials securely on my CentOS 7 machine using git-credential-libsecret
without success, migrating from the insecure git-credential-store
.
TLDR;
I cannot find any prebuilt binaries of git-credential-libsecret
for CentOS 7. I would like to ask if anyone can link me to a repository that provides them, before resorting back to build from source.
Using Git 2.22.0 from IUS repo:
[XXX@YYY ~]# git --version
git version 2.22.0
credential.helper
has been pointed to libsecret
:
[XXX@YYY ~]# git config --list --show-origin
file:/home/XXX/.gitconfig credential.helper=libsecret
Running git pull
on a private repo prints this:
[XXX@YYY Foo-repo]# git pull
git: 'credential-libsecret' is not a git command. See 'git --help'.
Confirming that git-credential-libsecret
is indeed not installed:
[XXX@YYY ~]# sudo ls /usr/libexec/git-core/ | grep credential
git-credential
git-credential-cache
git-credential-cache--daemon
git-credential-store
Active repositories:
base centos-sclo-rh centos-sclo-sclo elrepo epel extras ius remi-safe updates
Trying to install git-credential-libsecret
:
[XXX@YYY ~]# sudo dnf provides git-credential-libsecret
Error: No Matches found
It seems like some other distros (e.g. Fedora) ships with repository that provides git-credential-libsecret
(source), but not CentOS. I feel wary about installing from Fedora repo due to compatibility concerns.