Reset the neo4j user password
You reset the neo4j user password by disabling authentication and then re-enabling it.
-
In the values.yaml file, set
dbms.security.auth_enabled:tofalseto disable the authentication:All Neo4j
configvalues must be YAML strings, not YAML booleans. Therefore, make sure you put quotes around values, such as"true"or"false", so that they are handled correctly by Kubernetes.# Neo4j Configuration (yaml format) config: dbms.security.auth_enabled: "false" -
Run the following command to apply the changes:
helm upgrade <release-name> neo4j/neo4j -f values.yamlAuthentication is now disabled.
-
Connect with
cypher-shelland set the desired password:ALTER USER neo4j SET PASSWORD '<new-password>' -
Update the Neo4j configuration to enable authentication:
# Neo4j Configuration (yaml format) config: dbms.security.auth_enabled: "true" -
Run the following command to apply the update and re-enable authentication:
helm upgrade <release-name> neo4j/neo4j -f values.yamlAuthentication is now enabled, and the Neo4j user password has been reset to the desired password.