question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document how to disable keyring for users who might want to

See original GitHub issue

It’d probably be useful to add something like the following to our documentation. Borrowing from twine:

Disabling Keyring
^^^^^^^^^^^^^^^^^

In some cases, the presence of keyring may be problemmatic. To disable
keyring and defer to a prompt for passwords, uninstall ``keyring``
or if that's not an option, you can also configure keyring to be disabled.

See `twine 338 <https://github.com/pypa/twine/issues/338>`_ for a
discussion on ways to do that.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:22 (13 by maintainers)

github_iconTop GitHub Comments

6reactions
hl037commented, Sep 7, 2020

Wait… IMHO No solution proposed here is likeable ! in my case 👍

  1. I want to be able to use pip without having to type a password (to install / uninstall packages etc.) when clearly not necessary
  2. I certainly don’t want my keyring password to be blank…
  3. I have some modules / app that are using “rightfully” the keyring.

Why is not pip asking for the keyring only when required ? (i.e. when using a private repo, for what this feature has been introduced)… And providing a way to bypass the keyring ?

…This feature will just waste 20 minute or so to many developper either not using keyrings or not understanding why pip behaviour changed…

3reactions
skratcommented, Jan 5, 2021

@SharatChandar I think we should suggest to users to set environment variable PYTHON_KEYRING_BACKEND to keyring.backends.null.Keyring. That disables keyring (the Python package).

We don’t want users disabling the OS keyring password, since that is less secure.

@pradyunsg this is no solution, this will naturally lead users to set that var in their profiles, bashrc, etc. BUT this is affecting behavior of keyring package, not pip. It’s sound to assume that people want to continue using their other python apps depending on keyring. So, really, don’t defer this to keyring’s conf. and come up with a way to configure pip.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable keyring popup on Ubuntu - LinuxConfig.org
How to disable keyring popup on Ubuntu step by step instructions · Open up the Activites menu and search for keyring . ·...
Read more >
How to disable the "unlock your keyring" popup? - Ask Ubuntu
Fire up "User Accounts", set "automatic login" to "off". At startup you will be asked your user/password only once; popups like "unlock keyring"...
Read more >
Explained! The Concept of Keyring in Ubuntu Linux - It's FOSS
The trick is that when it asks to change the password, don't enter a new password and hit Continue instead. This will remove...
Read more >
How to disable keyring in Ubuntu, elementary OS, and Linux ...
Option 2: Make Keyring password Blank. Step 1) Launch 'Terminal' and enter the following command. Elementary OS users may need to first ...
Read more >
keyring continually prompts for key to unlock - Red Hat Bugzilla
A simple solution is to delete the original keyring password and the next session the user logs into, the user will be prompted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found