Hacker News new | ask | show | jobs
by dingleberry420 1412 days ago
how to sync access control rules between couchdb and the rest of the business logic? do you just not care about security/privacy, or do you duplicate all the logic?
1 comments

You can set up design documents that implement access control logic. These are written in JavaScript.

https://docs.couchdb.org/en/3.2.0/ddocs/ddocs.html (note the design document for the users database)

This isn't the right type of solution for all data - but there's a lot of situations where people have a bug lump of data that they're trying to expose... list of all current flights, or classes, or ongoing games.

It can be quite useful for a lot of use cases. One size never fits all.