summaryrefslogtreecommitdiff
path: root/rel/overlay
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@gmail.com>2022-12-03 03:01:25 -0500
committerNick Vatamaniuc <nickva@users.noreply.github.com>2022-12-04 12:38:25 -0500
commiteff331c9f5e734d318f9491c469e9d7be08e6999 (patch)
tree119dc8305932d7583c024c48ebc101ba1455292b /rel/overlay
parent958d0531087f198e7654a396ce192d1dc5790a36 (diff)
downloadcouchdb-eff331c9f5e734d318f9491c469e9d7be08e6999.tar.gz
Allow = in config key names
They are allowed only for the "k = v" format and not the "k=v" format. The idea is to split on " = " first, and if that fails to produce a valid kv pair we split on "=" as before. To implement it, simplify the parsing logic and remove the undocumented multi-line config value feature. The continuation syntax is not documented anywhere and not used by our default.ini or in documentation. Fix: https://github.com/apache/couchdb/issues/3319
Diffstat (limited to 'rel/overlay')
-rw-r--r--rel/overlay/etc/default.ini7
1 files changed, 7 insertions, 0 deletions
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index 0efc4cb23..ae691bb8d 100644
--- a/rel/overlay/etc/default.ini
+++ b/rel/overlay/etc/default.ini
@@ -238,6 +238,13 @@ bind_address = 127.0.0.1
; key with newlines replaced with the escape sequence \n.
; rsa:foo = -----BEGIN PUBLIC KEY-----\nMIIBIjAN...IDAQAB\n-----END PUBLIC KEY-----\n
; ec:bar = -----BEGIN PUBLIC KEY-----\nMHYwEAYHK...AzztRs\n-----END PUBLIC KEY-----\n
+; Since version 3.3 it's possible for keys to contain "=" characters when the
+; config setting is in the "key = value" format. In other words, there must be a space
+; between the key and the equals sign, and another space between the equal sign
+; and the value. For example, it should look like this:
+; rsa:h213h2h1jg3hj2= = <somevalue>
+; and *not* like this:
+; rsa:h213h2h1jg3hj2==<somevalue>
[couch_peruser]
; If enabled, couch_peruser ensures that a private per-user database