I have a large set of scripts which interact with Active Directory in a corporate/enterprise environment. Rather than have to type in my AD password on each run, I built a gnomekeyring store and lookup into each script.
Now that I've upgraded to Ubuntu 18.04, all of these scripts are failing because it looks like python-gnomekeyring has been deprecated and deleted from the archives.
What replaced it? How do I securely store a password via a python script?
It appears that the answer is
libsecret
However, it also appears that some functionality has been removed.
It has been replaced by module
keyring
(see https://pypi.org/project/keyring/).For Gnome Keyring, the backend of keyring can be either
SecretService
orGnome.Keyring
.A default backend can be specified by creating
$HOME/.config/python_keyring/keyringrc.cfg
with