#credentials #cargo #1password #cargo-registry #stores #provider #token

app cargo-credential-1password

A Cargo credential process that stores tokens in a 1password vault

5 unstable releases

0.4.4 Mar 21, 2024
0.4.2 Nov 18, 2023
0.4.0 Sep 18, 2023
0.3.0 Aug 26, 2023
0.1.0 Dec 16, 2020

#99 in Authentication

Download history 3/week @ 2024-02-14 9/week @ 2024-02-21 6/week @ 2024-02-28 1/week @ 2024-03-06 7/week @ 2024-03-13 163/week @ 2024-03-20 10/week @ 2024-03-27 20/week @ 2024-04-03

159 downloads per month

MIT/Apache

45KB
934 lines

cargo-credential-1password

A Cargo credential provider for 1password.

Usage

cargo-credential-1password uses the 1password op CLI to store the token. You must install the op CLI from the 1password website.

Afterward you need to configure cargo to use cargo-credential-1password as the credential provider. You can do this by adding something like the following to your cargo config file:

[registry]
global-credential-providers = ["cargo-credential-1password --account my.1password.com"]

Finally, run cargo login to save your registry token in 1password.

CLI Arguments

cargo-credential-1password supports the following command-line arguments:

  • --account: The account name to use. For a list of available accounts, run op account list.
  • --vault: The vault name to use. For a list of available vaults, run op vault list.

Dependencies

~1.4–9.5MB
~91K SLoC