Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Encrypted Subversion repository

Tags:

svn

encryption

Do you know of a reliable way to encrypt an entire Subversion repository?

I host the repository on my dedicated server (FreeBSD), but would like to add encryption so my source code cannot be stolen in readable format if someone hacks into my server.

I prefer a server side solution as different SVN clients may be used.

Possible?

like image 360
JubbaJubba Avatar asked Feb 25 '10 14:02

JubbaJubba


2 Answers

This thread gives a reasonable solution for GIT that could also be applied to SVN. Just encrypt (EncFS) the subversion repository folder and mount it remotely (with sshfs, for example). Your server would only have the encrypted version, and your desktop would have both, working with the unencrypted one:

[server|encrypted repo] -- sshfs -- [desktop|encrypted repo] -- encfs -- [desktop|unencrypted repo] -- svn -- [desktop|working copy]

NOTE: I don't know how well would this react to concurrent accesses... Try first and let us know :)

like image 192
Ruben Avatar answered Sep 28 '22 08:09

Ruben


You can encrypt the repository on the filesystem level, like this.

If you're concerned about traffic sniffing, this won't be enough.

like image 31
SLaks Avatar answered Sep 28 '22 09:09

SLaks