by _ea1k · 1y ago · 0 comments
It is also possible that the author's guess is right and that these were to contain sensitive data.
Noone really knows, but honestly, these kinds of mistakes are happening all the time. Who hasn't accidentally leaked their own .ssh dir on github? lol
Leaking the directory through other avenues is a different matter though. Almost all package managers provide post install and compile scripts. Hence doing (as an example) "npm install" can potentially leak it. That's something not many people actually pay attention to (you would have to basically jail every command, which sadly isn't the norm today)
I'd guess that most of us wouldn't do it by just "git init" in the home directory. There are many safer ways than that.
But we were all newbs once, and often even the newbs have access to various keys and credentials.
Not quite the same thing, but also a leak: https://blog.gitguardian.com/github-exposed-private-ssh-key/
I guess all these folks saying professionals would never make a mistake like this will also have insulting names for github engineers. :shrug
But mistakes happen all the item. It's very easy to fat-finger a line in .gitignore - one char off and you're toast.
I have often thought it would be nice to have a good tool to retroactively view and tidy them, but everything I've seen has not quite hit the nail on the head.
And at a certain level of criticality, you do not do this at all
You have security measures in place to prevent this.
Not that the ketaman cares about it.