#env-var #variables #environment #stored #credentials #1password #vault

app openv

A tool that uses the credentials stored in 1password as an environment variable

1 unstable release

0.1.0 Jan 2, 2021

#696 in Authentication

22 downloads per month

Apache-2.0

14KB
318 lines

openv

A tool that uses the credentials stored in 1password as an environment variable.

Requirements

Getting Started

$ eval $(op signin <sign_in_address>)
$ op create vault myenv

$ openv create myenv SECRET_TOKEN
myenv.SECRET_TOKEN> this-is-secret

$ openv list myenv
SECRET_TOKEN

$ env $(openv myenv get) sh -c 'echo $SECRET_TOKEN'
this-is-secret

$ env $(openv myenv get -n SECRET_TOKEN:MY_ENV) sh -c 'echo $MY_ENV'
this-is-secret

Install

On macOS via Homebrew

TBD

From binaries

Check out the release page for prebuilt versions of openv for many architectures.

From source

TBD

Development

# Run tests
$ cargo test

# Build
$ cargo build --bins

# Install
$ cargo install --path . --locked

Dependencies

~2.3–3.5MB
~63K SLoC