-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Keyring auth stopped working since 21.1 #9870
Comments
I'm tentatively adding this to 21.1.1 as this might be a regression. |
Removing from 21.1.1 as the problem and the potential fix are not obvious and we need to get a bugfix release out soon. @ffissore have you got feedback from Google ? |
Yes, they acknowledged the issue and will discuss how to handle this change in pip |
I got an update from Google, and it was marked as fixed last week:
|
not sure it is enough. Now when I have a GAR declared in my pip.conf I get an auth prompt from the GAR. This is problematic in CI workflows, because when tox creates a new venv, if the pip.conf refers to a GAR, it cannot install dependencies as it does not have the @sjprice how did you contact "google"? By "google", do you mean the maintainers of the |
For the record, I found a workaround to make tox work but I think I should not have to use it:
[testenv]
install_command = {toxinidir}/path/to/tox_custom_install_command.sh {opts} {packages}
#!/usr/bin/env bash
PIP_CONFIG_FILE=/dev/null pip install --upgrade pip==21.1.1
PIP_CONFIG_FILE=/dev/null pip install 'keyring>=23.0.1'
PIP_CONFIG_FILE=/dev/null pip install 'keyrings.google-artifactregistry-auth>=0.0.2'
pip install "$@"
|
I just got an update from google. They rolled out the change that makes their Artifact Registry return a 401 rather than a 403. |
Excellent news. Thanks for the follow-up, @ffissore. Shall we then close this issue and associated PR ? |
At this point, I am good, but I don't know if other indexes are affected. You know more about the pip ecosystem: feel free to close both issue and PR |
As we have not heard issues with other indexes, I'm going to close it, then. |
Description
PR #8687 fixed issue #8090 by changing the default value of
allow_keyring
fromTrue
toFalse
This change, combined with google "artifact registry" returning
403
when calling it without proper headers, resulted in breaking our CI pipelinePlease consider adding
403
as another accepted "auth error" HTTP status codeExpected behavior
No response
pip version
21.1
Python version
3.7.9
OS
linux
How to Reproduce
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: