Allow storing a pre-hashed admin password
authorJason Smith (work) <jhs@nodejitsu.com>
Fri, 31 May 2013 18:06:25 +0000 (18:06 +0000)
committerJason Smith (work) <jhs@nodejitsu.com>
Fri, 31 May 2013 18:06:25 +0000 (18:06 +0000)
commitc98ba5612e313b252e5b7ac91b3772c226b82217
tree5d2d5e0aa95493e5b0a0e3b52618b9d4fd1ed6cb
parentf15f54d56149d3119ca2c06bcd63991071fbbe40
Allow storing a pre-hashed admin password

When duplicating a couch, it is difficult to copy the _config/admins/*
values. Storing the encoded value does not work because that value is
re-hashed when stored. (Your password is the literal string
"-pbkdf2-abcdef...".)

This change will store any config setting unmodified if ?raw=true is
in the query string.

Updating _config/admins/* already requires admin privileges, so there is
no change to the security.
share/doc/src/configuring.rst
share/www/script/test/config.js
src/couchdb/couch_httpd_misc_handlers.erl