-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #12649 - arlosi:cred-stable, r=weihanglo
feat: stabilize credential-process and registry-auth Stabilization PR for `registry-auth` and `credential-process`. Tracking approval of this stabilization is done in the via the FCP in [#8933](#8933 (comment)). This PR is here to help reviewers of the FCP. * Stabilizes `registry-auth` and `credential-process` * Makes authenticated registries require a credential provider * Adds stable documentation for credential providers and authenticated registries Closes #8933 Closes #10474
- Loading branch information
Showing
38 changed files
with
712 additions
and
497 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
# cargo-credential-1password | ||
|
||
This is the implementation for the Cargo credential helper for [1password]. | ||
See the [credential-process] documentation for how to use this. | ||
A Cargo [credential provider] for [1password]. | ||
|
||
`cargo-credential-1password` uses the 1password `op` CLI to store the token. You must | ||
install the `op` CLI from the [1password | ||
website](https://1password.com/downloads/command-line/). You must run `op signin` | ||
at least once with the appropriate arguments (such as `op signin my.1password.com user@example.com`), | ||
unless you provide the sign-in-address and email arguments. The master password will be required on each request | ||
unless the appropriate `OP_SESSION` environment variable is set. It supports | ||
the following command-line arguments: | ||
* `--account`: The account shorthand name to use. | ||
* `--vault`: The vault name to use. | ||
* `--sign-in-address`: The sign-in-address, which is a web address such as `my.1password.com`. | ||
* `--email`: The email address to sign in with. | ||
|
||
[1password]: https://1password.com/ | ||
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process | ||
[credential provider]: https://doc.rust-lang.org/nightly/cargo/reference/registry-authentication.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# cargo-credential-libsecret | ||
|
||
This is the implementation for the Cargo credential helper for [GNOME libsecret]. | ||
See the [credential-process] documentation for how to use this. | ||
See the [credential-provider] documentation for how to use this. | ||
|
||
This credential provider is built-in to cargo as `cargo:libsecret`. | ||
|
||
[GNOME libsecret]: https://wiki.gnome.org/Projects/Libsecret | ||
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process | ||
[credential-provider]: https://doc.rust-lang.org/nightly/cargo/reference/registry-authentication.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# cargo-credential-macos-keychain | ||
|
||
This is the implementation for the Cargo credential helper for [macOS Keychain]. | ||
See the [credential-process] documentation for how to use this. | ||
See the [credential-provider] documentation for how to use this. | ||
|
||
This credential provider is built-in to cargo as `cargo:macos-keychain`. | ||
|
||
[macOS Keychain]: https://support.apple.com/guide/keychain-access/welcome/mac | ||
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process | ||
[credential-provider]: https://doc.rust-lang.org/nightly/cargo/reference/registry-authentication.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# cargo-credential-wincred | ||
|
||
This is the implementation for the Cargo credential helper for [Windows Credential Manager]. | ||
See the [credential-process] documentation for how to use this. | ||
See the [credential-provider] documentation for how to use this. | ||
|
||
This credential provider is built-in to cargo as `cargo:wincred`. | ||
|
||
[Windows Credential Manager]: https://support.microsoft.com/en-us/windows/accessing-credential-manager-1b5c916a-6a16-889f-8581-fc16e8165ac0 | ||
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process | ||
[credential-provider]: https://doc.rust-lang.org/nightly/cargo/reference/registry-authentication.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,6 +158,7 @@ fn registry( | |
None, | ||
operation, | ||
vec![], | ||
false, | ||
)?) | ||
} else { | ||
None | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,7 @@ pub(super) fn download( | |
None, | ||
Operation::Read, | ||
vec![], | ||
true, | ||
)?) | ||
} else { | ||
None | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.