CouchDB
https://docs.couchdb.org/en/stable/
Admin Interface: /_utils/
Creating a User
Either in the admin interface or directly, create a document in the _users database that looks like:
{
"_id": "org.couchdb.user:newusername",
"name": "newusername",
"type": "user",
"roles": [],
"password": "plaintext_password"
}
Granting Access to a DB
- https://docs.couchdb.org/en/stable/intro/security.html?highlight=security#authorization
- https://docs.couchdb.org/en/stable/api/database/security.html#api-db-security
{
"admins": {
"names": [],
"roles": []
},
"members": {
"names": [
"jan"
],
"roles": []
}
}
Read-Only Access
Untested: https://gist.github.com/ThibaultJanBeyer/389bca37f4b6973b84908895300bb7de
Slapdash