<p>I have a web server and I am currently paying for SVN hosting at a company that specializes in hosting svn.</p>

<p>I am thinking of just installing SVN on my dedicated server, are there any security implications of this? </p>

[{'answer_id': 13167, 'author': 'Nick Berardi', 'author_id': 17, 'author_profile': 'https://Stackoverflow.com/users/17', 'pm_score': -1, 'selected': False, 'text': '<p>SVN is very difficult to get setup in the Windows environment, at least if you want hosted SVN, a local repository is different.  My suggestion is stick with the company or search out a cheaper SVN that will not cost as much money.  They are not difficult to setup, but you would hate to lose all your source code because of an improper backup.</p>\n'}, {'answer_id': 13189, 'author': 'Brad Wilson', 'author_id': 1554, 'author_profile': 'https://Stackoverflow.com/users/1554', 'pm_score': 2, 'selected': False, 'text': '<p>For simple security requirements, setting up Subversion with svnserve is almost trivial. Even getting it running under Apache for more extensive security needs is not overly difficult.</p>\n\n<p>This is a good walk-through:</p>\n\n<p><a href="http://donie.homeip.net:8080/pebble/Steve/2006/02/27/1141079943879.html" rel="nofollow noreferrer">http://donie.homeip.net:8080/pebble/Steve/2006/02/27/1141079943879.html</a></p>\n'}, {'answer_id': 13286, 'author': 'Jedi Master Spooky', 'author_id': 1154, 'author_profile': 'https://Stackoverflow.com/users/1154', 'pm_score': 2, 'selected': False, 'text': '<p>I use VisualSVN Server from <a href="http://www.visualsvn.com/server/" rel="nofollow noreferrer">http://www.visualsvn.com/server/</a>, very easy to install and can be integrate with active directory. It\'s install on a win2008 with no problem.</p>\n'}, {'answer_id': 13288, 'author': 'Lasse V. Karlsen', 'author_id': 267, 'author_profile': 'https://Stackoverflow.com/users/267', 'pm_score': 2, 'selected': False, 'text': '<p>It depends on how far you want to consider this issue.</p>\n\n<p>If you want to install a Subversion server on your own, it looks like you have two options:</p>\n\n<ul>\n<li>Apache</li>\n<li>Subversions own protocol</li>\n</ul>\n\n<p>In either case, the problem isn\'t what the two do, but what the two <em>unintentionally do</em>.</p>\n\n<p>If there are bugs in Apache that allows an outside attacker to gain access to your data, then that is bad. If there are bugs in Subversions own server that allows the same, that is bad.</p>\n\n<p>What you need to do is consider <em>risk</em> and <em>consequences</em> for the scenarios, and come up with a server setup that meets your requirements, if possible.</p>\n\n<p>The cases you would at least have to consider would be:</p>\n\n<ul>\n<li>Bug in either system that allows an attacker to sink your server (example: something which makes your server use an inordinate amount of CPU time)</li>\n<li>Bug in either system that allows an attacker access to the data on that server</li>\n<li>Bug in either system that allows an attacker access to your domain (ie. all your servers and machines available from that public server)</li>\n</ul>\n\n<p>Personally I have considered how many are hosting subversion servers through Apache now, and installed <a href="http://www.visualsvn.com/server" rel="nofollow noreferrer">VisualSVN Server</a> to host my own source code without a doubt.</p>\n'}, {'answer_id': 13425, 'author': 'denis phillips', 'author_id': 748, 'author_profile': 'https://Stackoverflow.com/users/748', 'pm_score': 3, 'selected': False, 'text': '<p>Small correction to Jedi: it\'s VisualSVN Server from <a href="http://www.visualsvn.com/server/" rel="noreferrer">http://www.visualsvn.com/server/</a></p>\n'}, {'answer_id': 13427, 'author': 'Brian Lyttle', 'author_id': 636, 'author_profile': 'https://Stackoverflow.com/users/636', 'pm_score': 1, 'selected': False, 'text': "<p>Apache and SVN are fairly easy to get running together but there are a number of steps. It is definitely easier today than 2 years ago when I first tried. Make sure you have matching versions of the modules and spend some time playing with Apache locally before deploying to your server. There are versions of Apache with and without SSL. Check you have the one with OpenSSL included to protect credentials on the wire.</p>\n\n<p>Install Apache so that it can be manually started eg. not as a service. You'll want to do this to avoid a collision with any IIS apps on your server. You can install Apache to run as a service later, once your config is right.</p>\n\n<p>Normally Apache will use Basic Authentication. You need to secure this using SSL, the credentials are not encrypted in transit. You put user details in a test file on disk. If you want to authenticate users against windows or active directory, you will have a larger task on your hands (perhaps see VisualSVN for this).</p>\n\n<p>I had a quick look at VisuaSVN and it seems to be a good option. However a little Apache config experience can go a long way. Coming from an IIS background it wasn't too difficult, it just took some time to review all of the options/settings.</p>\n"}, {'answer_id': 822212, 'author': 'gbjbaanb', 'author_id': 13744, 'author_profile': 'https://Stackoverflow.com/users/13744', 'pm_score': 1, 'selected': False, 'text': '<p>VisualSVN is such a rare beast - a setup tool that is easier to install SVN on Windows than it is on Linux. And considering Linux you just have to type "yum install subversion", that\'s some praise.</p>\n\n<p>However, if you\'re really worried, I would install VMware alongside and run your SVN server in a guest OS on your web server.</p>\n\n<p>Security: if you run svnserve, then simply block access to that port (3960) to all but your computers. If not, you\'ll need to secure the svn auth config files.\nIf you\'re running it using apache, then its just another website to secure, in the same ways as usual. </p>\n'}, {'answer_id': 822308, 'author': 'cort', 'author_id': 97413, 'author_profile': 'https://Stackoverflow.com/users/97413', 'pm_score': 0, 'selected': False, 'text': "<p>The production svn server is important in terms of availability but it's never going to be enough and it doesn't matter whether it's Windows Srvr 2007, RH Linux whatever.. You'll need a well thought backup policy and taking care access management.</p>\n"}]
['https://Stackoverflow.com/questions/13154', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1368/']