Re:Microsoft's GitHub account allegedly hacked, 500GB stolen
by vorpalhex on Thursday May 07, 2020 @10:29AM
(#23103336)
Private github repositories are private the same way that facebok messages are private - private from your roommate, not from the people who own the platform or determined attackers.
[ Parent
| on HN ]
Re:Microsoft's GitHub account allegedly hacked, 500GB stolen
by matheusmoreira on Thursday May 07, 2020 @10:46AM
(#23103573)
Would be nice if git could store encrypted data and decrypt files on checkout. Repositories could be truly private that way.
Re:Microsoft's GitHub account allegedly hacked, 500GB stolen
by behindsight on Thursday May 07, 2020 @12:09PM
(#23104593)
Unfortunate timing[0] but that is pretty much what Keybase had implemented a few years ago[1]
1: https://keybase.io/blog/encrypted-git-for-everyone
0: https://blog.zoom.us/wordpress/2020/05/07/zoom-acquires-keyb...
Re:Microsoft's GitHub account allegedly hacked, 500GB stolen
by zoomablemind on Thursday May 07, 2020 @11:48AM
(#23104353)
Nothing stops one from putting encrypted artifacts into a git repo, encryption could be done via hooks. Except this would negate the delta storage, each version would be completely different, and non diffable.
One can just encrypt the .git folder and wrap the git client to handle the encryption/decryption on use. It's always a question where and how well do you keep the keys.
Re:Microsoft's GitHub account allegedly hacked, 500GB stolen
by thinkmassive on Thursday May 07, 2020 @12:43PM
(#23105015)
Use a gpg smartcard (yubikey or similar). This is how I store Ansible Vault secrets.
You’re absolutely right about the deltas. Initially I had one secrets file per environment, but as my projects grew I ended up breaking them out to a file per environment-project. Both for storage reasons and because it’s difficult to modify one encrypted file from multiple branches without writing plaintext secrets to disk.