-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
cargo info
requires login
#14409
Comments
@rustbot claim I will take a look. |
I can reproduce it. |
From the current design, if we can access the owner list, then we will display it; otherwise, it will skip the missing token error. I think the bug from here: cargo/src/cargo/ops/registry/info/mod.rs Line 238 in c76c8fd
We only checked the missing token error, maybe we should ignore all errors here. The reason we introduced this information is that sometimes knowing who maintained the crate should be helpful. |
It's not an issue of checking for errors. Credentials can pop up requests for passwords, biometrics, or hardware keys. I do not think it would be good if AFAIK, the |
I see. I didn't consider that. You are right. It doesn't make sense at all.
Good point. The Yes, we passed the 'Operation::Read' entitlement. However, I found that even if we do not pass it, the 'crates-io' crate will still require us to pass a token. I believe that whenever we send a request, we simply pass Line 388 in 2d17280
I will dig a little deeper to see why we are forcing it. |
Since this commit 0c25226, authentication is required for this API. |
Let's just remove it for now and we can always re-evaluate it later. |
I agree, I will go head to remove it tomorrow. |
Problem
Running
cargo info foo
seems to require a login to crates.io. I would not expect a simple information command to require authentication (or for those with a hardware token, a hardware key) to access it.Steps
cargo info syn
Possible Solution(s)
I'm guessing this is because of the call to
try_list_owners
. I do not thinkcargo info
should be trying to access API endpoints that require authentication.Notes
No response
Version
The text was updated successfully, but these errors were encountered: