Most companies go to great lengths to extract credentials, keys and other sensitive information into some sort of environment file, don't they?
Unless they had a copy of their database in text/JSON/XML format uploaded to version control as well??
Most companies go to great lengths to extract credentials, keys and other sensitive information into some sort of environment file, don't they?
Unless they had a copy of their database in text/JSON/XML format uploaded to version control as well??
Sounds like they store backups with git and push them to GitHub (presumably Git LFS). Someone should tell them that Git is not a backup solution. It's also possible they were using some backup service that uses GitHub SSO (not sure if that's better or worse).
It's good to see they finally took advantage of GitHub's feature that restricts user access to an organisation if they don't have 2FA. Every organisation should enforce that.
https://help.github.com/articles/requiring-two-factor-authen...
I reckon they either stuffed it all in as plain text or someone got hold of their source code and found a stupid hole in it and just read the database file off the front end somewhere. It's not unusual for the unclued to stick a database dump on a front facing web server with a "secret url" and just pull that down with curl or something.
Hell if you're using vault you might as well chuck the config in with the code. The vault key distribution is what needs to be controlled.