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
HTTP Authentication doesn't work for google artifact registry python index #2822
Comments
My UV version:
|
I will try to reproduce this. |
Hm the logs indicate that we are propagating authentication. Perhaps we are parsing it incorrectly. Could be related to the |
Is there an |
The secret ends with a |
Looks like google cloud uses I wanted to see if I can use a different kind of secret, but doesn't seem like they export the key in any other format. |
Okay, I went through the setup and unfortunately it's working for me without issue? I'll note that my base64 key does not end in an equals sign. Is it possible that you've generated it incorrectly? |
If it's base64 encoding, it could very likely end with |
Have exactly the same issue, but I have As far as I can understand, you are not decoding password here uv/crates/uv-auth/src/store.rs Line 110 in 7bcca28
so later you will try to base64 into %3D%3D instead of == but pip is doing unquote for password so %3D%3D will be converted to == https://github.com/pypa/pip/blob/06d21db4ff1ab69665c22a88718a4ea9757ca293/src/pip/_internal/utils/misc.py#L499
|
@avelychko12 thanks for the investigation! I put up #2947 if anyone wants to give it a try while I try to write a decent test case for this. |
@charliermarsh thanks for following up with this, so my workaround currently for this is to just use a different kind of token. Basically after activating the service account:
I get the auth token via:
Then I use that with
my scripts are make scripts so apologies if it seems a bit confusing but all of the above summarized is to get the token via But still with |
Closes - #2822 - #2563 (via #2984) Partially address: - #2465 - #2464 Supersedes: - #2947 - #2570 (via #2984) Some significant refactors to the whole `uv-auth` crate: - Improving the API - Adding test coverage - Fixing handling of URL-encoded passwords - Fixing keyring authentication - Updated middleware (see #2984 for more)
Should be resolved by #2976 and available in the next release. |
I've created a google cloud artifact repo, and I've created a service account & granted the following permissions to it:
I'm able to get the artifact settings like so:
This gave me an output like this:
Now with this, I'm able to install my package from
pip
.Setting
UV_EXTRA_INDEX_URL
or with the--extra-index-url
command-line argument, I'm not able to install the package.The text was updated successfully, but these errors were encountered: