CouchDB password rotated every deploy #16537
-
|
Checklist
Related to, but different from, #13760 Hosting
Describe the bug I'm a new Budibase user, so I'm deploying on k8s with Helm. I noticed that re-running the Helm deploy command restarts the CouchDB instance, and after this Budibase can no longer authenticate with CouchDB. It seems like CouchDB is being reconfigured with a new admin password. My App logs: To Reproduce
Expected behavior Redeploying with the same settings shouldn't break a working Budibase installation Screenshots Desktop (please complete the following information):
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Beta Was this translation helpful? Give feedback.
-
|
Confirmed, every re-running of The pod So the problem is that the adminPassword changes every deployment, but it should only be generated once. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Hey @djjudas21, Thanks for writing this up. I’ve spoken with our ops engineers. They are aware of the issue. We’ll be looking into a fix. In the meantime, if you manually set your password in CouchDB, you shouldn’t run into this issue again, as it will reuse the specified password: couchdb:
adminPassword: passwordSetHereI hope this workaround helps in the meantime. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @ConorWebb96, I can confirm the workaround works for me. Happy for you to close this if your ops engineers are on it, also happy for it to stay open until the fix is ready to be tested 🙂 |
Beta Was this translation helpful? Give feedback.
-
|
Hey @djjudas21, it's an interesting one but if we were to change the behaviour of this we would be modifying the default upstream CouchDB chart behaviour. You will find out that swapping the password is what Then, grab your Use it to get your UUID if you haven't printed it earlier, from within one of the pods. Run an upgrade for the UUID to make definite that Helm points to the correct cluster. Grab the encoded admin password from the secret, once more. You will find out it's a different one this time. We could change this if we preconfigured our values with a) a secret name OR but we don't think it's the right way to go. We added a warning on the Helm chart to document this. TLDR; A swapped password is the default upstream chart behaviour on |
Beta Was this translation helpful? Give feedback.
-
|
Hey all, I will convert this to a discussion rather than close it, as it might be helpful for others. If there are any related questions, they can be addressed as well. |
Beta Was this translation helpful? Give feedback.
Hey @djjudas21,
Thanks for writing this up. I’ve spoken with our ops engineers. They are aware of the issue. We’ll be looking into a fix.
In the meantime, if you manually set your password in CouchDB, you shouldn’t run into this issue again, as it will reuse the specified password:
I hope this workaround helps in the meantime.