Conversation
|
r? @ehuss (rust-highfive has picked a reviewer for you, use r? to override) |
|
Big shout out to @brycx for all the work getting |
ae6834c to
429cfe5
Compare
|
@joshtriplett how aggressively do we want to tie this to |
429cfe5 to
7efacff
Compare
|
@Eh2406 I think we should make them the same feature, since we shouldn't ship authenticated HTTP registries with non-asymmetric tokens. |
|
Capturing an idea from the Cargo team meeting: we could make the asymmetric token a private field (and make sure the enum doesn't implement |
src/cargo/util/auth.rs
Outdated
| } | ||
| } | ||
|
|
||
| pub struct Mutation<'a> { |
There was a problem hiding this comment.
Drive-by comment: this would probably be better as an enum.
|
☔ The latest upstream changes (presumably #10802) made this pull request unmergeable. Please resolve the merge conflicts. |
|
I just noticed that we have a check for setting the token using the command line, this check should probably be extended to the secret key as well. cargo/src/cargo/util/config/mod.rs Line 1264 in 247ca7f |
|
With #10592 landed, is there anything needed to be ready for review other than resolving the merge conflicts? |
|
It needs to be rebased and updated. I remember that there was significant feedback. I'm planning to come back to this PR the end of this week. Todos:
|
7efacff to
862c3c4
Compare
arlosi
left a comment
There was a problem hiding this comment.
Could you also update unstable.md to describe the feature?
862c3c4 to
e832894
Compare
16177ba to
b6adac1
Compare
|
🎉 Thanks! I appreciate that you clearly put in a lot of effort on this. Can you collect any todo items, and create new issues for them? I think it would help to track what is left, what needs to be decided or resolved, and to organize discussion on those. @bors r+ |
|
💔 Test failed - checks-actions |
|
That seams spurious and unrelated. |
|
@bors retry |
|
☀️ Test successful - checks-actions |
8 commits in 2381cbdb4e9b07090f552d34a44a529b6e620e44..8c460b2237a6359a7e3335890db8da049bdd62fc 2022-12-23 12:19:27 +0000 to 2023-01-04 14:30:01 +0000 - test: revive nightly plugin tests to work (rust-lang/cargo#11534) - Add note to release notes about rejecting multiple registries. (rust-lang/cargo#11531) - Fix a typo `fresheness` -> `freshness` (rust-lang/cargo#11529) - Reasons for rebuilding (rust-lang/cargo#11407) - Asymmetric tokens (rust-lang/cargo#10771) - Use proper git URL for GitHub repos (rust-lang/cargo#11517) - Add `registry.default` example (rust-lang/cargo#11516) - Support vendoring with different revs from same git repo (rust-lang/cargo#10690) Also update license exceptions and permitted dependencies for new cargo dependency "pasetors". A new dependency `getrandom` is added into `rustc-workspace-hacks`, since it requires feature `js`.
Update cargo 8 commits in 2381cbdb4e9b07090f552d34a44a529b6e620e44..8c460b2237a6359a7e3335890db8da049bdd62fc 2022-12-23 12:19:27 +0000 to 2023-01-04 14:30:01 +0000 - test: revive nightly plugin tests to work (rust-lang/cargo#11534) - Add note to release notes about rejecting multiple registries. (rust-lang/cargo#11531) - Fix a typo `fresheness` -> `freshness` (rust-lang/cargo#11529) - Reasons for rebuilding (rust-lang/cargo#11407) - Asymmetric tokens (rust-lang/cargo#10771) - Use proper git URL for GitHub repos (rust-lang/cargo#11517) - Add `registry.default` example (rust-lang/cargo#11516) - Support vendoring with different revs from same git repo (rust-lang/cargo#10690) Also update license exceptions and permitted dependencies for new cargo dependency "pasetors". A new dependency `getrandom` is added into `rustc-workspace-hacks`, since it requires feature `js`. r? `@ghost`
Builds on and is blocked by #10592. This adds initial support for Asymmetric Tokens #10519.