-
Notifications
You must be signed in to change notification settings - Fork 81
Not able to authenticate after changing password #32
Comments
I'm not sure what's happening here because this bit is tested, and I can't reproduce. Could you paste the exact command you're using to connect using this password, and what it's result is? Can you verify that the secret was installed in kubernetes, and that it's base64 decoded value is mySecretPassword? A final thing to try is the default neo4j/neo4j. If the container failed to set your desired password (for some reason, which I doubt) then the password would be neo4j. |
Any update here? |
Hey @moxious , thanks for your quick response and sorry for my late one. So I investigated a little bit more and it seems to be related to persistent volumes. If I install the chart once, delete it, and install it again with a different password it will keep the first password stored in the volume. I don't know if that is an issue, but it might get people confused. Here is what a I did to reproduce:
|
Yes, this makes sense. When you set a password in neo4j 4.0+, it writes something to the system database. If you retain disk images between launches, then when your new database starts up, it will have the state on disk of the old system database, which of course has the old password. This can be avoided several ways:
Unfortunately, as your'e describing this situation, it's working as intended. Helm doesn't auto-delete the PVCs associated with the install when you delete -- because the purpose of PVCs is to retain the data. |
@moxious, yes indeed! Sorry, I guess it was misinformation from my end. But it is a good headsup if anyone stubble upon this in the future :) Thanks a lot for your help |
Hey Guys, I don't know If I am doing something wrong!
I am installing the chart in a Kubernetes Cluster using the following command:
The deploy goes well and I can see the following message:
But then when we try to authenticate to db in our node.js service using
user=neo4j
andpassword=mySecretPassword
we see the following message being returning by db:Also I have also trying doing a curl inside the neo4j container:
Am I doing something wrong ?
PS. When I set
authEnabled: false
in the chart, everything works as expected :)The text was updated successfully, but these errors were encountered: