About the project
Ops scripts is a set of diagnostic scripts that watch the health of our infrastructure and run with a single command. They catch config drift (the running configuration differing from the recorded one), secrets committed to repos, meaning passwords and keys that ended up in code, expiring certs, dead links, missing backups and occupied ports. Instead of remembering each of these checks separately, you run one command.
The challenge
Certificates, backups, secrets, dead links and occupied ports are routine checks, so they are easy to put off until something breaks. We wanted the whole check to fit in a single command, so it stops depending on whether someone remembered to check.