-
Notifications
You must be signed in to change notification settings - Fork 1.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
Provide feedback and improve doc on keyring index authentication #12280
Comments
Regarding (1), we do link to the providers in https://docs.astral.sh/uv/configuration/indexes/#using-credential-providers — I'm hesitant to repeat them all there because they are relevant for other requests than those for indexes. We're interested in broadly improving the credential provider experience though, I expect the documentation to be expanded. The rest sound like nice improvements to the error messages. |
Would you mind sharing more details about your environment (including uv version) and what you ran using With the following
if I run
Whereas running with incorrect credentials produces the |
@zanieb & @jtfmumm thank you for taking the time to look at my issue. I think a bit more context of my use case will be useful. My team and I are using GitLab package registries to distribute our internal packages. For instance GitLab provides the following example to use package registry with
At the moment, we are using Still, Using enough verbosity when calling
I don't think I saw this behavior in the documentation, bringing point (1). Concerning @jtfmumm remark, I can indeed reproduce this behavior. So I guess it's technically not a bug, but it is still frustrating to not be able to distinguish between credentials being invalid and credentials not being found. Keep in mind that, for Edit: all experiments were done |
) This addresses a small part of #12280, namely when you have `authenticate` set to `always`, it will output a distinct error message for the case where you have a username but are missing a password.
Summary
Hello,
I tried using
uv
with custom package indexes and found the way to configure the authentication withkeyring
really very counter-intuitive.Foremost, the services names that
uv
tries to access withkeyring
is, to the best of my knowledge, not documented.By looking at the traces it seems that
uv
tries at least two services names:<package_index_url>/<package_name>
<package_index_fqdn>
Moreover, invalid credentials or missing credentials gives the same error:
An index URL (<package_index_url>) could not be queried due to a lack of valid authentication credentials (401 Unauthorized)
. This become more confusing as the documentation clearly states that:But I personally could not get
uv
to return a different error in this case.I think that using custom package indexes would be a lot less frustrating if :
uv
were documented in the authentication sectionExample
No response
The text was updated successfully, but these errors were encountered: