Skip to content

venkytv/direnv-op

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

direnv-op

direnv library to load secrets from 1Password

Dependencies

Installation

make install

Usage

For any directory where you need 1Password secrets to be injected using direnv, add the following to your .envrc file:

use oprc

Create a .oprc file in the same directory with the list of 1Password items you need injected:

cat >.oprc <<EOT
export A_SECRET="op://Vault/Item/credential"
export ANOTHER_SECRET="op://Vault/Another Item/credential"
EOT

You can use op item get "Item Name" --format json to get the reference for a secret.

See Also:

About

direnv library to load secrets from 1Password

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published