1.0.0 • Published 4 months ago

@launchpadlab/opensesame v1.0.0

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

Opensesame CLI

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

Setup Instructions

  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

Manual Instructions

If you prefer, you can manually perform the initial steps and use the CLI for syncing secrets files and diff-ing. 1. Login to 1Password and create a new vault (grab the id of the vault as that will be used for the -v argument to the CLI) 1. Within that vault, upload the secrets file to create a new document (grab the id of the document as that will be used for the -d argument to the CLI) 1. Add the secrets file previously uploaded to 1Password in your project folder and make sure it is not tracked in version control. Grab the file_path within your project for the secrets file as that will be used for the -f argument to the CLI 1. Within the project's package.json file, add a new key within the scripts block for load_secrets: opensesame -d XXX -v XXX -f XXX making sure to replace the XXX values with the respective values captured in the previous steps. 1. Run the command npm run load_secrets and follow on-screen instructions to sync secrets files within 1Password

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 files that are not version controlled.
  • To interact with 1Password directly, you can reference their documentation.

Maintainers Only: Publish Command

  1. npm publish --access restricted
1.0.0

4 months ago

0.6.0

6 months ago

0.5.1

10 months ago

0.3.0

11 months ago

0.2.0

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago