Get a Asymmetric Public key from credentials/config #11518
Labels
A-registry-authentication
Area: registry authentication and authorization (authn authz)
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Z-asymmetric-token
Nightly: asymmetric-token authentication
Problem
When using Asymmetric Tokens RFC 3231, cargo stores a secret key for use with the registry. In order to register that key the registry needs the public key. It would be nice for cargo to provide good ways to read the configurations it has. There are several related use cases.
Proposed Solution
As currently implemented in #10771
cargo login
prints the public key without any context or explanation. This is not ideal for any of these cases. It does not have enough context for 1, it is not intuitive to run after the fact for 2, and sometimes cargo login waits for the user which makes it not ideal for 3.We should probably design a separate command for retrieving this information, and possibly even a command for registering the public key.
Notes
Noted in #10771 (comment)
The text was updated successfully, but these errors were encountered: