apache / couchdb-helm

Apache CouchDB Helm Chart
https://couchdb.apache.org/
Apache License 2.0
49 stars 64 forks source link

Prehashed pw #26

Closed willholley closed 4 years ago

willholley commented 4 years ago

This is a rollup of #24 and #23 (which I need to add to so that the published chart is included in the docs folder).

GeorgFleig commented 3 years ago

The chart's logic to use the pre-defined admin password hash is broken. It does actually work using the chart, but the values required to get it to work are quite confusing..

Here is how I got it working:

  1. The key in the secret for the password.ini file must be password.ini, not my-password.ini.
  2. The adminPassword key inside the secret must still be set (random value is fine) as it is required by the StatefulSet environment variables.
  3. Set adminHash in the values.yaml to true so the logic in the init container is is enabled to copy the contents of the password.ini of the secret to the right place. The README suggests this variable could contain the admin password hash but the content is never evaluated at all.