incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aravinda VK <>
Subject Re: Write-only for users?
Date Mon, 14 Feb 2011 07:00:25 GMT
I had the similar situation while creating my photoblog. When user add
comments to a blog then other users can see the sensitive informations like

So my approach,
Created the comments app as an independent system(Like Disqus)
Added PHP layer to it and given read and write permission to Admin for
comments database.
The PHP layer acts as API server.

When user adds comment, It will be submitted to PHP layer using JSONP(since
cross domain).
To load the comments, I just pass URL of blog/page to get comments related
to that URL. (Email will be excluded by PHP layer while serving)

My photoblog is created as couchapp, and gets comments from PHP layer using

Except for comment system, everything else is complete couchapp.

Advantage here is, We can use the same comments system for multiple

You can visit the blog which I am talking about (This photoblog is in Kannada, Language of
Karnataka, India

Source code is not shared yet. Need to cleanup the code bit. Will share once
it is ready :)

Aravinda | ಅರವಿಂದ

On Mon, Feb 14, 2011 at 3:22 AM, Jonathan Geddes

> couchdb users,
> I'm thinking of using a couchapp for an upcoming project, but there is
> one capability that I'm unsure of.
> I need a database that anyone can post to, but only admin can read
> from. The requirement is to allow users to post personal information
> that other users cannot see. If I understand the couchdb permissions
> model correctly, for a given db, anyone who can create documents can
> also read documents.
> Is there a way to do this with a couchapp? It seems a shame to have to
> add "middleware" just to get this one capability.
> thanks,
> --Jonathan

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message