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 9B433E954 for ; Fri, 22 Feb 2013 20:59:02 +0000 (UTC) Received: (qmail 40400 invoked by uid 500); 22 Feb 2013 20:59:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 40357 invoked by uid 500); 22 Feb 2013 20:59:00 -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 40347 invoked by uid 99); 22 Feb 2013 20:59:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 20:59:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 20:58:52 +0000 Received: from rose.coup (pD4B885A8.dip.t-dialin.net [212.184.133.168]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id 6B6881409C for ; Fri, 22 Feb 2013 21:54:32 +0100 (CET) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: database per user architecture couchapp From: Jan Lehnardt In-Reply-To: Date: Fri, 22 Feb 2013 21:58:32 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <24AB690E-CF65-4CD6-A910-3FDE292D563A@apache.org> References: <5126F04D.8010305@binarykitchen.com> <20130222132727.5b04d528@dede> <5126FEC9.3080900@binarykitchen.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 22, 2013, at 21:46 , Jeff Charette wrote: > Does anyone know how setup database per user in a couch app? Wouldn't = this just give admin access to the main db? People use background processes to create databases on demand. You can = manage them with CouchDB=92s =93Externals=94 system. Listening on the = _users db=92s _changes feed and acting on that is common pattern. Cheers Jan --=20 >=20 > I am trying to setup up a basic user signup, then give them protected = docs. I have it working for a whole database, but ran into trouble with = attachments. Many have also warned of the security issues of protecting = your docs with secure_rewrites. >=20 > I'm stuck and thanks for all your time. >=20 > Jeff Charette | Principal=20 > We Are Charette > web / identity / packaging >=20 > m 415.298.2707 > w wearecharette.com > e jeffrey@wearecharette.com