3 ms·
Would be nice if git could store encrypted data and decrypt files on checkout. Repositories could be truly private that way.
by matheusmoreira 7y ago
Would be nice if git could store encrypted data and decrypt files on checkout. Repositories could be truly private that way.
- zoomablemind 7y agoNothing 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.
- thinkmassive 7y agoUse 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.
- behindsight 7y agoUnfortunate 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 https://keybase.io/blog/encrypted-git-for-everyone 0: https://blog.zoom.us/wordpress/2020/05/07/zoom-acquires-keybase-and-announces-goal-of-developing-the-most-broadly-used-enterprise-end-to-end-encryption-offering/ https://blog.zoom.us/wordpress/2020/05/07/zoom-acquires-keyb...