Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a nicer way to disable keyring #340

Closed
4 tasks done
jaraco opened this issue Sep 14, 2018 · 1 comment
Closed
4 tasks done

Provide a nicer way to disable keyring #340

jaraco opened this issue Sep 14, 2018 · 1 comment

Comments

@jaraco
Copy link
Owner

jaraco commented Sep 14, 2018

Historically, the recommended way to disable keyring was to uninstall it... but as revealed in pypa/twine#338, it's not always possible for a user who has keyring installed by a system package manager to uninstall a package without also uninstalling or invalidating other packages.

So let's provide a simple mechanism that disables keyring. Here's what I have in mind:

  • Provide a Null Keyring backend that returns None for all get operations.
  • Provide a command-line that configures the user's environment for this Null keyring. Something like keyring --disable.
  • For one-off invocations, also honor an environment variable like DISABLE_PYTHON_KEYRING that if present will give priority to the Null keyring.
  • For one-off invocations, honor an environment variable PYTHON_KEYRING_BACKEND to select a particular keyring such as the Null keyring.
@jaraco
Copy link
Owner Author

jaraco commented Sep 14, 2018

Released as 15.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant