Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45F77755E for ; Sun, 2 Oct 2011 06:29:39 +0000 (UTC) Received: (qmail 84478 invoked by uid 500); 2 Oct 2011 06:29:38 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 84036 invoked by uid 500); 2 Oct 2011 06:29:37 -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 Received: (qmail 84020 invoked by uid 99); 2 Oct 2011 06:29:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2011 06:29:37 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.140.74.2] (HELO continuum.iocl.org) (217.140.74.2) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2011 06:29:30 +0000 Received: (from krey@localhost) by continuum.iocl.org (8.11.3/8.9.3) id p926T6o11357; Sun, 2 Oct 2011 08:29:06 +0200 Date: Sun, 2 Oct 2011 08:29:06 +0200 From: Andreas Krey To: Grant Cc: users@subversion.apache.org Subject: Re: File access control Message-ID: <20111002062906.GA23950@inner.h.iocl.org> References: <346BACA9-6DE8-406E-87B1-A9C55FED6454@ryandesign.com> <9DB35C78-72AC-4FAB-B62E-117E868C4B55@ryandesign.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-message-flag: What did you expect to see here? On Sat, 01 Oct 2011 18:07:29 +0000, Grant wrote: ... > Ouch. If testing is done on the developer's local machine, he will > need a full working copy and it will be impossible to restrict read > access to one or a few files as I had planned to do with path-based > authz. Instead, could I check out a working copy of the repository to > a staging machine of mine and allow the developer to check out only > one or a few files as defined via path-based authz, thereby requiring > him to commit his changes and update the staging machine's working > copy in order to test his changes and debug? First of all, either he would need permission to do the 'svn up' on the staging machine, which, unless you do some sudo magic, would give him access to all the code, or you need to set things up so the staging area do update itself automatically on every commit made. Both is possible. But: In essence this setup means that I, the developer, have to commit every time I want to test something. Sometimes, that would mean three times a minute. This is a major nuisance for the devs, and it also means that the history accumulated is pretty much worthless, both because nobody will do meaningful commit messages and because there are no meaningful commits. > I suppose each developer > would require a separate staging machine to work this way. In addition it means that you *need* a branch for every dev's work, because otherwise you are basically back to 'everyone edits the master copy', and that you are the only one who can do merges anyway. > I'm really getting the square peg round hole feeling. The workflow > you describe is elegant and very enticing but it gives all of my code > away. The prevailing attitude seems to be that developers should be > trusted, If you don't trust me not to run away with the code, why should I trust you to pay me at the end of the month/contract? > but this goes against everything I've learned about system > administration where security is taken seriously and trust doesn't cut Well, if I was serious about getting at your code I would try to hack your production web server, or to get into an admin position at your company. Or cleaning personnel. :-) If you don't actually not want devs to *see* other code then you should instead aim on physical security. No external drives on the machines, no internet or something SElinuxy to prevent copies out of the secured part into the mailer or such. Andreas -- "Totally trivial. Famous last words." From: Linus Torvalds Date: Fri, 22 Jan 2010 07:29:21 -0800