From 5db3c03ee944d410dd53a8308ca2fdead9ed1514 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Sun, 18 Oct 2020 21:40:54 +0100 Subject: [PATCH] couchdb security doc --- packages/server/src/api/controllers/instance.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/server/src/api/controllers/instance.js b/packages/server/src/api/controllers/instance.js index fbee2f72f5..e9c39bde66 100644 --- a/packages/server/src/api/controllers/instance.js +++ b/packages/server/src/api/controllers/instance.js @@ -17,6 +17,17 @@ exports.create = async function(ctx) { const { clientId } = await masterDb.get(appId) const db = new CouchDB(instanceId) + await db.put({ + _id: "_security", + admins: { + names: [], + roles: [], + }, + members: { + names: [], + roles: [], + }, + }) await db.put({ _id: "_design/database", metadata: {