0.0
No commit activity in last 3 years
No release in over 3 years
Secrets for Figaro
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Figaro Secrets

Installation

Add this line to your application's Gemfile:

gem 'figaro_secrets'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install figaro_secrets

Usage

Currently, figaro_secrets only supports AWS Secrets Manager.

Text secrets

Format: secretsmanager:secret_name

Example:

# config/application.yml
GITHUB_API_TOKEN: "secretsmanager:github_api_token"

JSON secrets

Format: secretsmanager:secret_name:key

Example:

# config/application.yml
GITHUB_API_TOKEN: "secretsmanager:github:api_token"

Debugging

Several rake tasks are available to assist in debugging secrets. You can specify the environment in a few different ways:

  1. RAILS_ENV
  2. APP_ENV
  3. Task argument, e.g. rake figaro_secrets:list[production]

List configuration

rake figaro_secrets:list

Show secrets

rake figaro_secrets:secrets

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/allspiritseve/figaro_secrets.

License

The gem is available as open source under the terms of the MIT License.