solana/.buildkite/env
Michael Vines bedb05bdeb
Plumb GEOLOCATION_API_KEY down to the blockexplorer (#6514)
2019-10-23 09:53:06 -07:00
..
.gitignore Ignore unencrypted file 2019-06-07 21:38:30 -07:00
README.md Regenerate secrets 2018-12-15 15:27:58 -08:00
secrets.ejson Plumb GEOLOCATION_API_KEY down to the blockexplorer (#6514) 2019-10-23 09:53:06 -07:00

README.md

ejson and ejson2env are used to manage access tokens and other secrets required for CI.

Setup

$ sudo gem install ejson ejson2env

then obtain the necessary keypair and place it in /opt/ejson/keys/.

Usage

Run the following command to decrypt the secrets into the environment:

eval $(ejson2env secrets.ejson)

Managing secrets.ejson

To decrypt secrets.ejson for modification, run:

$ ejson decrypt secrets.ejson -o secrets_unencrypted.ejson

Edit, then run the following to re-encrypt the file BEFORE COMMITING YOUR CHANGES:

$ ejson encrypt secrets_unencrypted.ejson
$ mv secrets_unencrypted.ejson secrets.ejson