Ruby utility to load encrypted variables into the environment
- Add the following line to the Gemfile:
gem "encrypted-environment", git: "git@github.com:pepibumur/encrypted-environment.git"
- Run
bundle install
require "encrypted/environment"
Encrypted::Environment.load_from_ejson(
"path/to/env.ejson",
secrets_path: "secrets",
private_key: "key"
)
Encrypted::Environment.encrypt_ejson(
"path/to/env.ejson",
secrets_path: "secrets",
private_key: "key"
)