The CouchDB Dockerfiles lay down an [admins] section in /opt/couchdb/etc/local.d/docker.ini here. The Helm chart is currently configured such that /opt/couchdb/etc/default.d is persistent but /opt/couchdb/etc/local.d is not.
This results in regeneration of the admin hashes whenever a CouchDB pod is restarted, invalidating any session cookies and leading to inconsistent auth failures with cookies are used.
I think the safest thing is likely to just make /opt/couchdb/etc/local.d persistent as well; the Dockerfile will already skip laying down a new [admins] section if one is present.
cc @kocolosk
The CouchDB Dockerfiles lay down an
[admins]section in/opt/couchdb/etc/local.d/docker.inihere. The Helm chart is currently configured such that/opt/couchdb/etc/default.dis persistent but/opt/couchdb/etc/local.dis not.This results in regeneration of the admin hashes whenever a CouchDB pod is restarted, invalidating any session cookies and leading to inconsistent auth failures with cookies are used.
I think the safest thing is likely to just make
/opt/couchdb/etc/local.dpersistent as well; the Dockerfile will already skip laying down a new[admins]section if one is present.cc @kocolosk