Skip to content

missive/heroku-buildpack-1password-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Heroku Buildpack for 1Password CLI

This buildpack allows you to easily install and configure the 1Password CLI tool on your Heroku app.

Usage

To use this buildpack, follow these steps:

  1. Add the buildpack to your Heroku app:
heroku buildpacks:add https://github.com/missive/heroku-buildpack-1password-cli
  1. Create a service account on 1Password by following these steps:
  • Log in to your 1Password account.
  • Go to the "Settings" section.
  • Click on "Service Accounts" in the sidebar.
  • Click on "New Service Account" and provide a name for the account.
  • Generate a new token for the service account and copy it.

Once you have created the service account, set the OP_SERVICE_ACCOUNT_TOKEN environment variable with the generated token:

heroku config:set OP_SERVICE_ACCOUNT_TOKEN=your_service_account_token

This token will be used by the buildpack to authenticate with 1Password CLI.

  1. Deploy your app:
git push heroku master
  1. Verify that the 1Password CLI is installed and authenticated:
heroku run op user get --me

Preloading secrets from 1password into ENV vars

In order to run processes with ENV set from 1password secrets, follow the Load secrets into the environment guide.

License

This buildpack is released under the MIT License. See LICENSE for more information.

About

Install the 1Password CLI on Heroku (`op` command line tool)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages