You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/12/08 08:05:24 UTC

[GitHub] [couchdb-helm] travbus opened a new issue #16: does couch_peruser work?

travbus opened a new issue #16: does couch_peruser work?
URL: https://github.com/apache/couchdb-helm/issues/16
 
 
   
   
   **Describe the bug**
   I can't get couch_peruser config setting to work I'm hoping it's something simple I'm missing happens a lot ha
   
   **Version of Helm and Kubernetes**:
   minikube version: v1.5.2
   helm version
   version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}
   
   **What happened**:
   when i make a new user in _users db it is not auto creating a db for that user
   
   **What you expected to happen**:
   auto creating a db for that user
   
   **How to reproduce it** (as minimally and precisely as possible):
   This was my install steps. I also put  ingress controller ip in my hosts file to chart-example.local
   once I was through the steps I opened 
   http://chart-example.local/_utils in browser
   
   `helm repo add couchdb https://apache.github.io/couchdb-helm`
   
   `kubectl create secret generic couchv1-couchdb --from-literal=adminUsername=travis --from-literal=adminPassword=testPass12 --from-literal=cookieAuthSecret=testPass12secret`
   
   ```
   helm install couchv1  \
   couchdb/couchdb \
   --set createAdminSecret=false \
   --set clusterSize=3 \
   --set ingress.enabled=true \
   --set persistentVolume.enabled=true \
   --set couch_peruser.enable=true \       // i tried this
   --set couchdbConfig.couch_peruser.enable=true \ .  // i tried this and i tried both
   --set couchdbConfig.couchdb.uuid=decafbaddecafbaddecafbaddecafbad
   ```
   
   `curl -X POST -H "Content-Type: application/json" http://travis:testPass12@chart-example.local/_cluster_setup -d '{"action": "finish_cluster"}'`
   
   **Anything else we need to know**:
   I'm a noob I tried to access the pods couch config file to see what in it for settings but I could not find a way to open or edit the file.
   
   if i run with both couch_peruser in diff spots i get this
   Helm get values couchv1
   USER-SUPPLIED VALUES:
   clusterSize: 3
   couch_peruser:
     enable: true
   couchdbConfig:
     couch_peruser:
       enable: true
     couchdb:
       uuid: decafbaddecafbaddecafbaddecafbad
   createAdminSecret: false
   ingress:
     enabled: true
   persistentVolume:
     enabled: true
   
   this is a user doc  that should trigger a new user db when inserted into _users db
   well thats it does on my single node install maybe cluster is different?
   ```
   {
     "_id": "org.couchdb.user:DavidWonderman7",
     "_rev": "1-853d92e2cfe8fb10bb323e967c09c704",
     "name": "DavidWonderman7",
     "roles": [
       "basic"
     ],
     "type": "user",
     "password_scheme": "pbkdf2",
     "iterations": 10,
     "derived_key": "35a0d27874ce314f992ea4918cab8350e9bd99c2",
     "salt": "8e5d888eb4f23277c621d8efc3ad8318"
   }
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services