|
|
|
|
|
by random023987
3236 days ago
|
|
> The answer I got to this problem was "design middleware that handles this for you" which has to be a joke It's not a joke. The couch security model doesn't match the requirements of multi-user untrusted clients typical of internet distributed applications. But then most database have a similar limitation, it's only more visible in CouchDB because you can read/write documents directly from a browser without an application server, so the next logical step is to just let clients read/write directly to CouchDB over the internet without an app server. If your data is in postgres, you will need an application server handing access control, business logic, and serialization. If your data is in CouchDB, you need a proxy server that handles access control, whitelisting certain URL patterns and body content based on user entitlements. |
|