Incredibly simple Rails credentials management and conflict resolution.
Uses Ruby stdlib (openssl, base64) — no gems required.
curl -fsSL https://raw.githubusercontent.com/mbroadhead/encredible/main/bin/encredible -o /usr/local/bin/encredible && chmod +x /usr/local/bin/encredibleOr install to ~/bin/:
mkdir -p ~/bin && curl -fsSL https://raw.githubusercontent.com/mbroadhead/encredible/main/bin/encredible -o ~/bin/encredible && chmod +x ~/bin/encredibleRun all commands from your Rails project root.
# Decrypt and print credentials
encredible --show
# Edit credentials in $EDITOR
encredible --edit
# Target a specific environment
encredible --show --env staging
# Set up git mergetool, difftool, and textconv
encredible --deploy
# Resolve merge conflicts on .yml.enc files
encredible --resolveencredible --deploy registers the tool in your repo's .git/config and adds .gitattributes entries so that:
git diffautomatically decrypts.yml.encfilesgit log -p -- config/credentials.yml.encshows decrypted historygit mergetool --tool=encredibleresolves encrypted credential conflictsgit difftool --tool=encredibleshows side-by-side decrypted diffs
- Ruby in
PATH(no gems needed) - The appropriate key file (
config/master.keyorconfig/credentials/<env>.key) orRAILS_MASTER_KEYenv var