73 questions
Advice
0
votes
1
replies
107
views
What are other alternatives for python keyring?
I'm trying to find a secure way to store token for my cli application. In the app I take the token from ms entra id and I want to store this token in user computer so that user can use it again until ...
1
vote
1
answer
117
views
GCP keyring authentication not working in Docker build
I am able to install my python package from GCP Artifactory.
Authenticate to GCP.
% gcloud auth application-default login
Your browser has been opened to visit:
https://accounts.google.com/o/...
0
votes
1
answer
315
views
How do I delete a password set using Python's keyring library?
I used the keyring library in Python to store a password needed to logon to an external service.
import keyring
keyring.set_password("service_name", "username", "my_password&...
0
votes
2
answers
112
views
How to access files owned by a user in an application
Context
Imagine I have a application with a Python server running as user 'python-app' on Linux and a Python client also running as user 'python-app'. The user 'python-app' does not have root ...
3
votes
1
answer
486
views
Python Keyring does not overwrite entry but creates new entry
I'm having trouble with the python keyring library. I want to extract passwords from an entry in the windows credential manager. After that I want to overwrite the password of that specific entry. ...
0
votes
1
answer
473
views
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 ...
1
vote
1
answer
610
views
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 ...
1
vote
1
answer
292
views
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. ...
1
vote
0
answers
1k
views
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 ...
0
votes
1
answer
581
views
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 Service
Wants=network-online.target
After=network-...
12
votes
4
answers
6k
views
Working Poetry project with private dependencies inside Docker
I have a Python library hosted in Google Cloud Platform Artifact Registry. Besides, I have a Python project, using Poetry, that depends on the library.
This is my project file pyproject.toml:
[tool....
0
votes
1
answer
803
views
Python python_keyring package - Upgrade of Python has broken keyring
I have upgrade from python 3.9.6 to 3.10.5 and kept thankfully the old version. This is on a Win-64 machine so should be using the WinVault backend (default)
I have copied all the site_packages from 3....
2
votes
1
answer
526
views
Keyring stops working after first get_password() call when running Flask project with gunicorn in supervisor
I'm trying to run a instance of a flask project with gunicorn on supervisor and I'm facing a issue where I'm not able to retrieve passwords from keyring after the first get_password() is called. After ...
1
vote
0
answers
689
views
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 ...
4
votes
2
answers
1k
views
Pycharm not working with Google Artifact Repository keyring, keeps asking for user
On my OSX M1 Mac I have the following keyring setup which works with Google Artifact Repository to resolve dependencies when using python on the command line shell.
Refer to https://cloud.google.com/...