News for hackers. Stuff that matters.
Re:Hosting git repositories on your VPS by gbrindisi on Monday July 01, 2013 @12:22PM (#5971642)
Does anybody know if there is something to seamlessly encrypt a git repository in case I don't trust the git server provider (say a VPS)?
Re:Hosting git repositories on your VPS by georgebashi on Monday July 01, 2013 @12:36PM (#5971741)
There's a solution with smudge/clean filters here: https://github.com/shadowhand/git-encrypt or a solution which acts as a git remote here: https://github.com/blake2-ppc/git-remote-gcrypt

Alternatively, you could just encrypt the directory that you push to remotely (probably /home/git in this tutorial), which seems like a cleaner solution: https://help.ubuntu.com/13.04/serverguide/ecryptfs.html

Re:Hosting git repositories on your VPS by AaronBBrown on Monday July 01, 2013 @02:02PM (#5972453)
Re:Hosting git repositories on your VPS by daemon13 on Tuesday July 02, 2013 @11:44AM (#5978564)
The walkthrough is rather overwhelming.

Was it super easy to understand & set-up?

Re:Hosting git repositories on your VPS by AaronBBrown on Wednesday July 03, 2013 @11:55AM (#5985380)
Yeah, the reality is it's about 3 additional commands to get going (over any other normal volume)...and a very short chef cookbook to automate it.

    # create a key file
    dd if=/dev/urandom of=/etc/mykeyfile.key bs=512 count=1
    # create the luks container
    cryptsetup luksFormat /dev/sdf1 /etc/mykeyfile.key
    # open the luks container
    cryptsetup luksOpen /dev/sdf1 myluksvolume --key-file /etc/mykeyfile.key
    # format the volume
    mkfs.xfs /dev/mapper/myluksvolume
    # mount the disk
    mount /dev/mapper/myluksvolume /mnt/mymountpoint