No commit activity in last 3 years
No release in over 3 years
Diff rails encrypted credentials store between git commits.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 10.0
~> 3.0
 Project Readme

RailsEncryptedDiff

See differences between rails encrypted credentials across branches.

Why??

I grew tired of manually decrypting the files, then running diff, then cleaning up everything and hope that I didn't miss a detail or commited it to the repo. Really the only reason 🤷

Installation

Add this line to your application's Gemfile:

gem 'rails_encrypted_diff'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rails_encrypted_diff

Usage

bin/rails encrypted:diff[store,key,target_branch]  # Diff the encrypted storage against a version in another branch (master by default)
# defaults
# store = credentials ; relative to config/ and auto appended '.yml.enc'
# key = master ; relative to config/ and auto appended '.key'
# target_branch = master

sample run

🚨🚨 WARNING 🚨🚨

🚨🚨 THIS IS INTENDED FOR CODE REVIEWS 🚨🚨

Please for the love of god, don't run this on a CI, you'll expose secrets and it'll create a mess.

Contributing

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

License

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