Encrypted enironment

CircleCI codecov

Ruby utility to load encrypted variables into the environment

Install

  1. Add the following line to the Gemfile:
gem "encrypted-environment", git: "[email protected]:pepibumur/encrypted-environment.git"
  1. Run bundle install

Usage

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"
)