-
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
fix(login): Deprecate CLI token #15057
base: master
Are you sure you want to change the base?
Conversation
This came up in rust-lang#13623 to avoid putting tokens into shell history.
r? @weihanglo rustbot has assigned @weihanglo. Use |
47af6dc
to
5f93571
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Have we had any consensus or FCP for this change?
I do not believe we've discussed this as a team yet. Open to FCP or team meeting discussion. |
FWIW I've seen @woodruffw use https://developer.1password.com/docs/cli/reference/commands/read/ to use command line options like this in a seemingly safe way. I wonder if we really need to deprecate this option, or if a strong warning in the documentation/help text would be sufficient. though to be fair, this is probably irrelevant for the |
Do you suggest keeping doc/helptext for discoverable reasons? I am fine with that as well :) |
I feel like |
Yep, I frequently use that or similar (e.g. Ultimately, passing secrets between processes without an actual authenticated IPC channel/system secret manager is pretty difficult to do in a completely secure way 😅 -- even IMO it'd be reasonable to nudge users towards providing tokens via |
To clarify, because of the stability guarantee Cargo cannot remove the flag (see #13623 (comment)). Deprecation here means, well, a big warning 😆. |
Ah, sorry for the confusion! I badly misread the diff as actually removing the positional, not merely hiding it 😅 |
I wasn't aware either that the plan is not to remove the flag. The word "deprecated" to me means that it would go away in a future version. I think I would personally prefer the second option mentioned in #13623 (comment):
|
696a577
to
0e8578b
Compare
@rfcbot fcp merge This PR deprecates the optional
Folks, take your time to check in boxes. This is not an urgent FCP. |
Team member @weihanglo has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useful change. LGTM
What does this PR try to resolve?
This came up in #13623 to avoid putting tokens into shell history.
How should we test and review this PR?
The exact approach to deprecation can vary
<token>
in at least some docs for discovery (most likely the man page)etc
I also suspect we could reorganize
cargo help login
but wanted to decouple that from this change.Additional information