You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/09/28 16:49:46 UTC

[17/39] couchdb commit: updated refs/heads/developer-preview-2.0 to 3ac3db6

Add couch_peruser


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/d56f2fc4
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d56f2fc4
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d56f2fc4

Branch: refs/heads/developer-preview-2.0
Commit: d56f2fc4f268c9e750741fa49bf5640cdf09fbdb
Parents: cbff75a
Author: Klaus Trainer <kl...@apache.org>
Authored: Mon Aug 10 22:22:52 2015 +0200
Committer: Klaus Trainer <kl...@apache.org>
Committed: Wed Aug 26 13:30:28 2015 +0200

----------------------------------------------------------------------
 rebar.config.script         |  1 +
 rel/overlay/etc/default.ini | 11 +++++++++++
 rel/overlay/etc/local.ini   | 10 ++++++++++
 rel/reltool.config          |  2 ++
 4 files changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/d56f2fc4/rebar.config.script
----------------------------------------------------------------------
diff --git a/rebar.config.script b/rebar.config.script
index 6b09c36..38b2d2e 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -30,6 +30,7 @@ DepDescs = [
     {couch_plugins,     "couch-plugins",    {branch, "master"}},
     {couch_event,       "couch-event",      {branch, "master"}},
     {couch_stats,       "couch-stats",      {branch, "master"}},
+    {couch_peruser,     "peruser",          {branch, "master"}},
     {docs,              "documentation",    {branch, "master"}, [raw]},
     {ddoc_cache,        "ddoc-cache",       {branch, "master"}},
     {ets_lru,           "ets-lru",          {branch, "master"}},

http://git-wip-us.apache.org/repos/asf/couchdb/blob/d56f2fc4/rel/overlay/etc/default.ini
----------------------------------------------------------------------
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index 7878981..8cda263 100644
--- a/rel/overlay/etc/default.ini
+++ b/rel/overlay/etc/default.ini
@@ -45,6 +45,16 @@ checkpoint_after = 5242880 ; checkpoint after every N bytes were written
 ; larger buffer sizes can originate smaller files
 keyvalue_buffer_size = 2097152 ; value in bytes
 
+[couch_peruser]
+; If enabled, couch_peruser ensures that a private per-user database
+; exists for each document in _users. These databases are writable only
+; by the corresponding user. Databases are in the following form:
+; userdb-{hex encoded username}
+enable = false
+; If set to true and a user is deleted, the respective database gets
+; deleted as well.
+delete_dbs = false
+
 [httpd]
 port = {{backend_port}}
 bind_address = 127.0.0.1
@@ -157,6 +167,7 @@ uuids={couch_uuids, start, []}
 auth_cache={couch_auth_cache, start_link, []}
 os_daemons={couch_os_daemons, start_link, []}
 compaction_daemon={couch_compaction_daemon, start_link, []}
+couch_peruser={couch_peruser, start_link, []}
 
 [indexers]
 couch_mrview = true

http://git-wip-us.apache.org/repos/asf/couchdb/blob/d56f2fc4/rel/overlay/etc/local.ini
----------------------------------------------------------------------
diff --git a/rel/overlay/etc/local.ini b/rel/overlay/etc/local.ini
index 5877eb4..58baefd 100644
--- a/rel/overlay/etc/local.ini
+++ b/rel/overlay/etc/local.ini
@@ -7,6 +7,16 @@
 [couchdb]
 ;max_document_size = 4294967296 ; bytes
 
+[couch_peruser]
+; If enabled, couch_peruser ensures that a private per-user database
+; exists for each document in _users. These databases are writable only
+; by the corresponding user. Databases are in the following form:
+; userdb-{hex encoded username}
+;enable = true
+; If set to true and a user is deleted, the respective database gets
+; deleted as well.
+;delete_dbs = true
+
 [httpd]
 ;port = 5984
 ;bind_address = 127.0.0.1

http://git-wip-us.apache.org/repos/asf/couchdb/blob/d56f2fc4/rel/reltool.config
----------------------------------------------------------------------
diff --git a/rel/reltool.config b/rel/reltool.config
index a52d037..7699f3e 100644
--- a/rel/reltool.config
+++ b/rel/reltool.config
@@ -41,6 +41,7 @@
         couch_replicator,
         couch_stats,
         couch_event,
+        couch_peruser,
         ddoc_cache,
         ets_lru,
         fabric,
@@ -97,6 +98,7 @@
     {app, couch_replicator, [{incl_cond, include}]},
     {app, couch_stats, [{incl_cond, include}]},
     {app, couch_event, [{incl_cond, include}]},
+    {app, couch_peruser, [{incl_cond, include}]},
     {app, ddoc_cache, [{incl_cond, include}]},
     {app, ets_lru, [{incl_cond, include}]},
     {app, fabric, [{incl_cond, include}]},