Reset the neo4j user password

You reset the neo4j user password by disabling authentication and then re-enabling it.

  1. In the values.yaml file, set dbms.security.auth_enabled: to false to disable the authentication:

    All Neo4j config values 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"
  2. Run the following command to apply the changes:

    helm upgrade <release-name> neo4j/neo4j -f values.yaml

    Authentication is now disabled.

  3. Connect with cypher-shell and set the desired password:

    ALTER USER neo4j SET PASSWORD '<new-password>'
  4. Update the Neo4j configuration to enable authentication:

    # Neo4j Configuration (yaml format)
    config:
      dbms.security.auth_enabled: "true"
  5. Run the following command to apply the update and re-enable authentication:

    helm upgrade <release-name> neo4j/neo4j -f values.yaml

    Authentication is now enabled, and the Neo4j user password has been reset to the desired password.