Your git http passwords stored safely in libsecret (GNOME or KDE)
Git supports several transport protocols and one of these is http. I would not use as a default method to access git repository but sometimes, you have to use this. Http authentication in git is by default frustrating, you’ve to provide your password (or the token) each time you want to push.
not really fun 😢
git http password cache
To reduce the password fatigue, git has a helper mechanism able to store your password for certain duration (which lasts by default 15 min) in memory. It’s a bit like AutoAuth extension in Firefox.
But still, once you log out, or after a while (if you did not set a large time-out), you need to enter your password again. I’m a lazy person so I want not to have to enter my password again.
Much better: git password storage securely in your session keyring (GNOME or KDE)
git has another more helpful helper that use libsecret to store safely your http passwords. Libsecret is a library interface to access secrets (being password, token, …), and is used by bother GMOME and KDE.
Let’s see how to enable it:
How does it work? When you log in your desktop session, the keyring daemon (GNOME or KDE) unlocks the secret storage, then git can access the user and the password for the domain.