A session cookie acquired on one node is recognised by any other node if you 
follow the instructions below (these are in the docs and _cluster_setup does 
this too). 

You need to ensure each node has the same secret in couch_httpd_auth. It's 
randomized at startup if not set, so set it to something (large, random) before 
starting couchdb.

For _admin_ users, you also need to ensure you set the same hashed version in 
the .init file as the salt value is part of the cookie state (so that cookies 
are invalidated when passwords change).

Basically, anything in the .ini file needs synchronising between the nodes 
externally. By hand, but more likely using chef / puppet, etc. 

Cloudant, for example, generates default.ini from a template which sets a 
cluster-wide couch_httpd_auth  secret and the [admins] section.

B.

> On 14 May 2017, at 02:43, Geoffrey Cox <[email protected]> wrote:
> 
> Hi!
> 
> Anyone have any ideas on this?http://stackoverflow.com/q/43958527/2831606
> 
> Thanks!
> 
> Geoff

Reply via email to