medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
467 stars 217 forks source link

Remove ability for CouchDB admins to be used as medic admins #2942

Open SCdF opened 7 years ago

SCdF commented 7 years ago

Right now we use CouchDB admins as our medic admins.

Not only is there no reason to do this: it's dangerous. CouchDB admins are to CouchDB as root is to 'nix.

We cannot really use CouchDB roles for this: especially in the _users DB CouchDB doesn't really support you changing the security model and adding roles.

Instead, we should fix this by:

SCdF commented 7 years ago

I've taken this out of 2.11. It's not required to solve the issues in that release.

SCdF commented 7 years ago

I have changed the description of this ticket with new information about how couchdb roles are not appropriate for solving this.