You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kl...@apache.org on 2015/08/10 22:23:43 UTC
couchdb commit: updated refs/heads/couchdb-peruser to 837c27f
Repository: couchdb
Updated Branches:
refs/heads/couchdb-peruser [created] 837c27f80
Add couchdb_peruser
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/837c27f8
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/837c27f8
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/837c27f8
Branch: refs/heads/couchdb-peruser
Commit: 837c27f804cf7a6f78729836038fc70bc236e24f
Parents: b3c5367
Author: Klaus Trainer <kl...@apache.org>
Authored: Mon Aug 10 22:22:52 2015 +0200
Committer: Klaus Trainer <kl...@apache.org>
Committed: Mon Aug 10 22:22:52 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/837c27f8/rebar.config.script
----------------------------------------------------------------------
diff --git a/rebar.config.script b/rebar.config.script
index 374425c..55881b9 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"}},
+ {couchdb_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/837c27f8/rel/overlay/etc/default.ini
----------------------------------------------------------------------
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index 9e18a32..ea442e8 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
+[couchdb_peruser]
+; If enabled, couchdb_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, []}
+couchdb_peruser={couchdb_peruser, start_link, []}
[indexers]
couch_mrview = true
http://git-wip-us.apache.org/repos/asf/couchdb/blob/837c27f8/rel/overlay/etc/local.ini
----------------------------------------------------------------------
diff --git a/rel/overlay/etc/local.ini b/rel/overlay/etc/local.ini
index 5877eb4..3427d73 100644
--- a/rel/overlay/etc/local.ini
+++ b/rel/overlay/etc/local.ini
@@ -7,6 +7,16 @@
[couchdb]
;max_document_size = 4294967296 ; bytes
+[couchdb_peruser]
+; If enabled, couchdb_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/837c27f8/rel/reltool.config
----------------------------------------------------------------------
diff --git a/rel/reltool.config b/rel/reltool.config
index a52d037..d42c555 100644
--- a/rel/reltool.config
+++ b/rel/reltool.config
@@ -41,6 +41,7 @@
couch_replicator,
couch_stats,
couch_event,
+ couchdb_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, couchdb_peruser, [{incl_cond, include}]},
{app, ddoc_cache, [{incl_cond, include}]},
{app, ets_lru, [{incl_cond, include}]},
{app, fabric, [{incl_cond, include}]},