-
Notifications
You must be signed in to change notification settings - Fork 1.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
Issue with uv pip
Handling Multiple Private Index URLs Leading to 403 Errors
#11244
Comments
I'm guessing this is related to #11074 e.g., as described at #8565 (comment) Is there a way you could share more details about the index URLs? Obfuscated is fine, but the structure is meaningful here. You can also use |
Where do your registries serve files from relative to the index URL you provide? |
Hey @zanieb , the registries are both 'Artifact Registry's in GCP. Once I pulled the service-account json keys from GCP I convert it to a url I can use as extra index url like so:
The second URL would then be generated the same way, except that the of course the ARTIFACT_REGISTRY_NAME but also the GCP_PROJECT_ID would be different. Does that answer your question? :) In the rust trace it first matches the first package with the first registry, and then indeed it does show: As to your second comment: I will follow #11074 and if there's anything else you need, I'll try and answer! |
Summary
Hello,
I am currently working on a project that requires pulling first-party libraries from multiple private artifact registries. To authenticate with these registries, I generate a JSON-based key in the format
https://_json_key_base64:{actual-key}/{location-of-registry}
and use it in the extra-index-url when installing packages viauv pip
.This approach works perfectly when installing from a single index. However, when I attempt to pull from multiple indexes, I encounter persistent 403 errors.
Steps to Reproduce:
Use
uv pip
to install libraries from multiple private registries:This results in the following error:
The issue does not occur when using
pip
with the--extra-index-url
option.Expected Behavior:
When using
uv pip
with multiple--index
options, libraries from all specified private registries should be installed without resulting in authorization errors.Observed Behavior:
When specifying multiple private registries using
uv pip
, access to the libraries results in an HTTP 403 (Forbidden) error, indicating an issue with authorization.Additional Information:
uv
0.5.28 (commit ee2bdc2, 2025-02-04)Anonymized verbose log
Platform
Darwin 24.3.0 arm64
Version
uv 0.5.28 (ee2bdc2 2025-02-04)
Python version
3.13.1
The text was updated successfully, but these errors were encountered: