Skip to content

Check if YAML files contain secrets that should be in ENV

Notifications You must be signed in to change notification settings

elliotrushton/roboscott

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roboscott

Image of Robo Scott

A simple tool to parse YAML files and attempt to detect if secrets are stored in them.

Named after Scott who (rightfully) flips tables when secrets are commited to config files but was away one day and needed a proxy.

Forked from yaml-lint

Motivation

Secret and key management can be challenging if it's not already setup. Many legacy code bases have secrets or keys peppered through config files (or worse, hard coded - which is beyond the scope of this!). Detecting those keys quickly and easily, even if naively, is the goal of this project. For more information on best practices on storing keys see 12 Factor - Config

Install

gem install roboscott

Usage

Check a file

roboscott config.yml

Check all files, recursively, in a folder

roboscott my-legacy-app/

By default, roboscott will redact any sensitive findings, to remove this use -u or --unredacted

roboscott my-legacy-app/config/database.yml
Running in unredacted mode
File my-legacy-app/config/database.yml - The value 'hunter2' for key 'password' looks sensitive

About

Check if YAML files contain secrets that should be in ENV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages