Return-Path: Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: (qmail 61254 invoked from network); 10 Oct 2010 23:37:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Oct 2010 23:37:18 -0000 Received: (qmail 45190 invoked by uid 500); 10 Oct 2010 23:37:17 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 45155 invoked by uid 500); 10 Oct 2010 23:37:17 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Delivered-To: moderator for users@subversion.apache.org Received: (qmail 29670 invoked by uid 99); 9 Oct 2010 16:37:28 -0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jehanproc2@gmail.com designates 74.125.82.47 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=t++qm6M7XkIZ+KpAQrcEpCexBzMsJUr0h4//2D59yuU=; b=fITlRO8f1YnvBKruo81WtJSLM2i7TGmXkmHYSIulD2bNOm0bHM5gvvhhO1e1ahLoZ9 T2UCmBkFO4r3QciEVTGfCK94kkqPMuo5LjWVsg9P3Sx4IKSyQVcCYBUVT0kKqCl79UY5 Ijg9t1c27gdNkLv/N7HA2Yb1Y7IQVXohlldqA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=EKkyMVbLHby2z3y75f27q3BmVe3npOXVdYYDcstp9bfSNCFBLXdRuiD/ARqT96hpBQ JNVAb/gU2lIYPZZZmSEcriYGlfFjzDp+4wYyNqYTV+GICZCVjo6FVqi3pZh6cytE+cnk pKURq3F3DKoVjabo2+4bNmi/0T7StYA5LJ6ZE= Message-ID: <4CB09A2F.7020203@it-sudparis.eu> Date: Sat, 09 Oct 2010 18:37:03 +0200 From: jehan procaccia Reply-To: jehan.procaccia@it-sudparis.eu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Nico Kadel-Garcia CC: Bob Archer , Siva Kumar , "users@subversion.apache.org" Subject: Re: svn Farm References: <4CAC8E54.3090206@it-sudparis.eu> <4CADF2BB.5010106@it-sudparis.eu> <4CAED202.7090301@it-sudparis.eu> <4CAF3143.8050807@it-sudparis.eu> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le 09/10/2010 15:39, Nico Kadel-Garcia a �crit : > On Fri, Oct 8, 2010 at 11:15 AM, Bob Archer wrote: > > >> The client should be able to store the credentials if you have it set up to do so. On windows/mac it is encrypted with OS included libraries. For Linux you need to set up gnome keyring or kde-wallet. >> >> http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.serverconfig.netmodel.credcache >> > Warning up front: this is a long analysis, and slightly ranting. I'll > shorten it up to say "this is completely unreliable and misleading > documentation". > > > Let's quote it, shall we? > > >> �For other Unix-like operating systems, no standard �keychain� services exist. >> > This is the fundamental problem, coupled with the default enabled > storage of passwords and no way to prevent it on the server. > > >> However, the Subversion client knows how to store password securely using the �GNOME Keyring� and �KDE Wallet� services. >> > Both of these tools require bulky sets of dependencies not mentioned > or documented except, these days, in the on-line book. They're not > installed by default, and using them from a non X session or a remote > X terminal or Putty is damned akward. There are published widgets to > aid this, such as the "gkeyring" utility, but they're not standardized > yet in any UNIX or Linux distribution that I can find. So this claim > is classic handwaving. > > >> Also, before storing unencrypted passwords in the ~/.subversion/auth/ caching area, the Subversion client will ask the user for permission to do so. >> > This feature was only, finally, added in Subversion 1.6. Quite a few > operating systems don't provide this recent a version: RHEL and > CentOS, for example, are still stuck at Subversion 1.4. And it can't > be enforced on the server, it's entirely client side optional > behavior. > > >> Note that the auth/ caching area is still permission-protected so that only the user (owner) can read data from it, not the world at large. The operating system's own file permissions protect the passwords from other non-administrative users on the same system, provided they have no direct physical access to the storage media of the home directory, or backups thereof. >> > And whowever wrote this has no idea what they're talking about. I'm > going to be crude for a moment: this is complete horseshit. > > First, many backup systems are often enabled to allow network based > recovery. After all, who would be stupid enough to put clear text > passwords on their backup tapes? > > Second, many working environments in the UNIX world rely on NFS based > home directoies, to share working environments and configurations > across a variety of machines. In such environments, *any* host that > can be leveraged to local root access can "su" or "suco" to become the > target user, and access their entire home directory. > > Think I'm kidding? Walk into any university environment: plug in a > live Linux CD. Run an "nmap" scan for hosts running NFS. Run > "showmount" to detect what NFS shares are published to everyone. Go > ahead and mount the shares. Look in them for home directoriies. Look > in them, using your local root privileges, for Subversion passphrases. > (Look for CVS passphrases and un-passphrase-protected SSH keys while > you're at it.) > > This requires no internal knowledge of the remote system, and can also > be done by any rootkitted system on the network. If you happen to > already know the environment somewhat, just lok into any local system > and take some notes. > > So, "local physical access', my eye. The equivalent to this behavior > is taping your front door key under your front door mat. After all, if > they're on you porch, you trust them, right? They must be your > neighbor if they're on your street! This is how many business and > educational environments treat their networks: once you're inside the > perimeter, you're assumed to be trusted and have tremendous access, > because locking things down further requires time and money and > inconvencience to the people trying to do their work. So, assuming > that "local physical access" is required is an extremely ill-founded > assumption. > > Now, allow me to quote the next part: > > >> Of course, for the truly paranoid, none of these mechanisms meets the test of perfection. So for those folks willing to sacrifice convenience for the ultimate in security, Subversion provides various ways of disabling its credentials caching system altogether. >> > It's not paranoia when they *are* out to get you. And these days, with > cracking kiddies wandering the world and people working in large > shared networks, they are out to get you just as a hobby. And the > "ways of disabling its credentials caching sysem" are all local client > configuraton based. They are entirely reliant on owning the local > installation, and *none* of them are on by default. Very few > Subversion administrators have such direct control of the client base: > I've run it for small and large companies and home setups, and *never* > had that kind of control. > > Look, Subversion inherited its practice of storing password in > cleartext from its ancestor, CVS. It's been an uphill battle ever > since to wallpaper over the practice: there are enough layers of > wallpaper, finally, that it's almost thick enough to be a wall. It's > fixed for TortoieSVN, and svn+ssh using SSH keys can work well. But > *every single client* I've had in the last... four years has wanted to > use their Windows passwords, and balked when I showed them this > problem. Some gave up on password authentication, and simply used > blank svnserve passwords to enforce the setting of usernames and > logging of changes. Others went with SSH keys. Some refused to believe > me, because "it uses HTTPS, they can't be stored in plaintext". (That > took some extra work to disprove: it was a director of security, who > couldn't imagine that any commercially supported software could be > that stupid.) > > Look, I'm glad that Subversion finally started asking before storing > passwords in version 1.6. That was a big step forward over its former > practice of storing it unannounced, but guess what? Version 1.5 and > 1.4 are still in use commercially. (Look in RHEL 5 and CentOS 5: > they're still at Subversion 1.4.) I have had people in the last year, > as part of new subversion client setups, go ahead and store their > passwords locally thinking "of course it's stored encrypted, it uses > HTTPS!!!". And I've shown them their own Windows login passwords and > therefore email passwords this way, and opened up their email in front > of them to show the problem. > > All that said, I'll call this my "annual rant on the subject", and > simply post links to it when it comes up again. It does need > occasional explanation, for newer users unfamiliar with the security > implications of this local password storage problem. > Whaooo , that is a comprehensive analysis, thanks, I must admit that I didn't consider all these "holes" .... Back to my original need => provide svn repositories for hundred of ldap students, without the burden to re-created users, passwords, and possibly share a central/common authZ file for all repos. My conclusion to the "rant" above, is that I should consider svn+ssh beeing the best solution in terms of security, I am right ?. Also, if I set "store-auth-creds = no " and accept users to re-enter their password at each svn action, svn + LDAPS URLs method might be a good security option too !? One last idea, what about git-svn on the client side, would it be better ? Thanks .