Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7EE61EFE4 for ; Sat, 23 Feb 2013 09:25:18 +0000 (UTC) Received: (qmail 24637 invoked by uid 500); 23 Feb 2013 09:25:17 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 24428 invoked by uid 500); 23 Feb 2013 09:25:16 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 24403 invoked by uid 99); 23 Feb 2013 09:25:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Feb 2013 09:25:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.216.41 as permitted sender) Received: from [209.85.216.41] (HELO mail-qa0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Feb 2013 09:25:11 +0000 Received: by mail-qa0-f41.google.com with SMTP id bs12so794356qab.7 for ; Sat, 23 Feb 2013 01:24:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=YS3zmMSleHhGdq2lFUV7XzzSLgTBkK9b7ztgGp5tOXY=; b=BAqotVcfimZxapBtQkt/ST/0oo7Le/7Z7d0Cdt+REalcdKpel8rTNbecdpkwjFj4/n b5BOOYIQGaRgBJErqiKCDSNnyWkj0EU8Y7bdRQZ4YT0433RD0+Zkh9RVS/oFqrh2HNo4 7QIcFpubEpsbBWq0VGdOsodtbB5rULCcDQk/f2pG+wLooEb1ae2uTaaNwbttAb+9XWax xYt9GuK0K05NBSHmEjac/FzoF5qZrBIVHbdVNmPFwM2Qb0zdNfX7fi8q34zjtPoGpWkr u9iD03W7sR2qFUm09KMIW4uCnHPHqiS5MUxSpAUkH4xxCC7wOkF4Ff4wOoD9FQ0AH+vO Z+fg== MIME-Version: 1.0 X-Received: by 10.224.10.141 with SMTP id p13mr2496206qap.40.1361611490345; Sat, 23 Feb 2013 01:24:50 -0800 (PST) Received: by 10.49.64.232 with HTTP; Sat, 23 Feb 2013 01:24:50 -0800 (PST) In-Reply-To: References: <5126F04D.8010305@binarykitchen.com> <20130222132727.5b04d528@dede> <5126FEC9.3080900@binarykitchen.com> Date: Sat, 23 Feb 2013 10:24:50 +0100 Message-ID: Subject: Re: database per user architecture couchapp From: Benoit Chesneau To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org if you can use another couchdh then rcouch [1] has the module couch_dbupdates [2] which ahs been specifically done for that purpose. Also in rcouch you have the view changes [3] wich allows you to get notifications when the index is updated. This is a real view changes and not the current hack in couchdb, all sequences are incrementally indexed. This view changes allows you to make efficient filtered replications without the need of having one db/user. You can also validate reads [4] if you need it. Not to say that rcouch is fully compatible and based on couchdb 1.3. I'm actively working on porting the rcouch core to couchdb. Hope it helps, - beno=EEt [1] http://rcouch.org [2] https://github.com/refuge/couch_dbupdates [3] https://github.com/refuge/rcouch/wiki/View-Changes [4] https://github.com/refuge/rcouch/wiki/Validate-documents-on-read On Fri, Feb 22, 2013 at 9:46 PM, Jeff Charette wrote: > Does anyone know how setup database per user in a couch app? Wouldn't th= is just give admin access to the main db? > > I am trying to setup up a basic user signup, then give them protected doc= s. I have it working for a whole database, but ran into trouble with attac= hments. Many have also warned of the security issues of protecting your do= cs with secure_rewrites. > > I'm stuck and thanks for all your time. > > Jeff Charette | Principal > We Are Charette > web / identity / packaging > > m 415.298.2707 > w wearecharette.com > e jeffrey@wearecharette.com