1.0.1 • Published 8 years ago
heroku-escher-keypool-editor v1.0.1
heroku-escher-keypool-editor
Tool for editing heroku app escher key pools. The application calls the
heroku-cli config:set command with the given application name and config
and sets a new escher key.
How to Install
Simply run npm run -g heroku-escher-keypool-editor!
How to Use
To add a key, required parameters are app name, keyId and secret.
Config name defaults to SUITE_ESCHER_KEY_POOL, but can be overwritten.
Example
heroku-escher-keypool-editor --app my-app --configName CONFIG_VARIABLE --keyId key_v1 --secret supersecretThis will add new key to the escher key pool, or the overwrite existing one.
Use the --unset option to delete an existing key:
heroku-escher-keypool-editor --app my-app --configName CONFIG_VARIABLE --keyId key_v1 --unsetNote: The tool will assume the key pool is a predefined stringified json array.
And the key format should be:
{
"keyId": "my_key_v1",
"secret": "H4ck3R_5eCr37",
"acceptOnly": 0
}There is a built-in help command available with
heroku-escher-keypool-editor --help