2.0.0 • Published 9 months ago

@launchpadlab/opensesame v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Opensesame CLI

A simple command line interface to store and share non-version controlled application secrets files within the 1Password vault structure.

The recommended approach is to invoke opensesame directly from the command line to simplify to a more universally supported developer experience across codebases.

Setup Instructions

  1. npm install @launchpadlab/opensesame -g

Recommended: Non-NPM

  1. If a package.json file is not used for a given project (or not preferred to be used), you can use a direct initial invocation of the CLI by running opensesame in your terminal. This will generate a .opensesamerc file to persist the project specific variables.
  2. It is recommended to run opensesame to invoke this CLI tool going forward within this project.

Legacy: NPM

  1. npm install @launchpadlab/opensesame -g
  2. Within your project, ensure a npm command in the package.json file exists for load_secrets: opensesame -d XXX -v XXX -f XXX. If one is not present, add it within the scripts key. For this command -d refers to the document_id in 1Password, -v refers to the vault_id in 1Password, -f refers to the local file_path where the secrets file is located.
{
  ...
  "scripts": {
    ...,
    "load_secrets": "opensesame -d XXX -v XXX -f XXX"
  }
  ...
}
  1. If you know the values for -d -v or -f, please insert those values if not already set. Otherwise the CLI tool will guide you through how to set those.
  2. Run the command npm run load_secrets and follow on-screen instructions

FAQs

  • This CLI tool can be used to sync any non-version controlled file into 1Password. Typically this is a .env or application.yml file. However, it can also be used with rails credentials to be used to sync the *.key file that is not version controlled.
  • To interact with 1Password directly, you can reference their documentation.

Maintainers Only: Publish Command

  1. npm publish
2.0.0

9 months ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago