-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
make keyring fallback optional #7038
make keyring fallback optional #7038
Conversation
I'm not sure this approach is good; some indexes rate-limit users based on credentials (e.g. have lower rate limits for unauthenticated users). Always providing credentials, instead of waiting for an error and retrying, seems to be a better behavior as it generates fewer network requests. |
|
@neersighted now i see - the assumption is that it should use the keyring even if there is no config - in case there just happens to be a suitable config in the normal namespace of the keyring |
while this certainly makes sense to have, wouldn’t this very specifc feature - legacy support for keyring entries not created by poetry not be the perefect candiate for a config flag? |
allright i changed this PR so that the fallback is now an option that can be configured. @neersighted would be great if you could take a look. (I would assume that this would require some more documentation/discussion before this can merged) |
don't think that this will get merged, so closing the pr |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #1917 - the root cause of this issue seems to be that any request made by poetry tries to get auth information from the keyring even if the config of the PasswordManager has no indication that the requets needs auth in the first place. This is also the reason why any operation that does any kind of requests fails, with the keyring errors.
This was caused by some code that was bypassing the normal keyring opreations, which i removed.
I updated the test so that they still pass using the normal poetry keyring repo. I also made the keyring protected so access to it is discouraged.
Pull Request Check List
Resolves: #issue-number-here