Questions tagged [python-keyring]

Python library for accessing a system's native keyring service. It can be used for secure password storage.

68 questions
2
votes
1 answer

Mercurial keyring and password change on Google Code

I'm using Mercurial (latest bundled with THG) and have a repo on Google Code. I enabled the mercurial_keyring extension and this worked perfectly until I changed the password on my Google account. Now Google Code returns a HTTP 403 error due to the…
Lucero
  • 59,176
  • 9
  • 122
  • 152
1
vote
1 answer

Nuitka compilation error: No keyring backend available

I’m trying to compile a small python file which sends email based on the yagmail library, which itself relies on the keyring library. Compiling works fine. Executing with dry-run options works fine. However, when I actually try it, it prompts for…
Louis.vgn
  • 149
  • 1
  • 1
  • 9
1
vote
0 answers

Access user keyring from systemd hook or crontab

I'm trying to implement a systemd hook (systemd-sleep) to connect and disconnect from protonvpn. However, these scripts are executed as root and do not have access to the keyring. The backend is kwallet, since I am on fedora-kde plasma. When I…
crapula
  • 61
  • 4
1
vote
2 answers

How do I list and access the secrets stored in Ubuntu's keyring from the command line?

I see this in the help keyring -h usage: keyring [-h] [-p KEYRING_PATH] [-b KEYRING_BACKEND] [--list-backends] [--disable] [operation] [service] [username] positional arguments: operation get|set|del service …
MiniMe
  • 1,057
  • 4
  • 22
  • 47
1
vote
1 answer

How to securely store Azure DevOps PAT token in a GitHub repo?

My GitHub action would try to get a python package from Azure DevOps Artifacts. It needs Azure DevOps credentials to access that package. I made it work using Basic HTTP Authentication. https://username:password@pypi.company.com/simple pip install…
MAK
  • 1,915
  • 4
  • 20
  • 44
1
vote
2 answers

R keyring package - my keyring has disappeared (maybe), what happened to it and what keyring do I have now?

I've been using keyring reliably for months. All of a sudden, a bunch of scripts failed because my code to pull keys is returning nothing. I had a named keyring with a passcode. It appears to be gone. When I run keyring::keyring_list I do have…
Chris Umphlett
  • 380
  • 3
  • 15
1
vote
1 answer

Are there any python modules to store passwords securely in .conf/.txt files?

I am trying to read and write username and password in a secured manner. With my current implementation I am following AES-CBC encryption/decryption but storing the encrypted username the with random key in a config file is a security issue. I found…
Auto-learner
  • 1,411
  • 7
  • 26
  • 43
1
vote
3 answers

RuntimeError: Unable to initialize SecretService: Environment variable DBUS_SESSION_BUS_ADDRESS is unset

Running into issue with keyring: RuntimeError: Unable to initialize SecretService: Environment variable DBUS_SESSION_BUS_ADDRESS is unset SecretService is installed. OS is RHEL Running: python -c "import keyring.backends.SecretService as SS;…
Alex F
  • 33
  • 1
  • 6
1
vote
2 answers

Using Keyring in cx_Freeze : No recommended backend was available

I am trying to build an exe file using cx_Freeze from target.py which has an import of keyring in the code. I succeeded in building the exe file, but calls an error saying "No recommended backend was available. Install the keyrings.alt package if…
tokawa
  • 11
  • 3
1
vote
0 answers

Vagrant, Mercurial Keyring: constantly requests password for encrypted keyring

So I'm running Ubuntu 14.04 on VirtualBox via Vagrant, and want to set up Mercurial so that it doesn't constantly ask for a password when pulling latest. In that regard, I've installed Mercurial-Keyring, and changed my ~/.hgrc file to look…
0
votes
1 answer

How do I use keyring with Python 2.4?

I wrote a package that has dependency in keyring. Everything is installed fine with Python 2.7 until I test Python 2.4 Here is my setup.py from setuptools import setup, find_packages setup( name="blah", version='0.9dev', …
BPm
  • 2,924
  • 11
  • 33
  • 51
0
votes
0 answers

keyring error when importing: module 'io' has no attribute 'text_encoding'

When importing keyring, import keyring for some reason I keep on getting error message: "AttributeError: module 'io' has no attribute 'text_encoding' " the line preceding the error refers to one of the site packages (py310compat.py on the zipp…
0
votes
0 answers

Problem with keyring.get_credential() returning None

I am trying to use the keyring library from Python 3 to store and retrieve credentials for a user. The following simple example should store a password, read it back, and then read both the username and password, but get_credential() is returning…
rdanter
  • 131
  • 6
0
votes
0 answers

How do I retrieve a password from Keychain Access using keyring?

"Keeping credentials safe in Jupyter Notebooks" (https://towardsdatascience.com/keeping-credentials-safe-in-jupyter-notebooks-fbd215a8e311) says that "Keyring integrates with your OS keychain manager... You would use it as" import…
Tom Lever
  • 321
  • 3
  • 16
0
votes
1 answer

Unable to use Python keyring module from systemd service

I want a python script to automatically start after boot on a linux computer. To achieve this I set up a systemd service: [Unit] Description=My Script…
masterofpuppets
  • 119
  • 2
  • 11