Skip to content

Using NEO4J_AUTH_FILE with docker compose secrets doesn't work out of the box #1879

@mateuszpawlik

Description

@mateuszpawlik

I follow the documentation: https://neo4j.com/docs/operations-manual/current/docker/docker-compose-standalone/#docker-compose-secrets

Found sources here: https://github.com/neo4j/docs-operations/blob/5.x/modules/ROOT/pages/docker/docker-compose-standalone.adoc#deploy-a-neo4j-server-with-docker-secrets

With neo4j:5.22.0 image, when I use docker compose secrets and set NEO4J_AUTH_FILE environment variable, neo4j service errors out with:

Failed to read config: Unrecognized setting. No declared setting with name: AUTH.FILE. Cleanup the config or disable 'server.config.strict_validation.enabled' to continue.

It seems to be a new feature. I used neo4j:5.24.2 image and get the following error:

Invalid value for NEO4J_AUTH: 'neo4j:averylongpassword'

I changed the content of my neo4j_auth.txt file to neo4j/averylongpassword, and neo4j started.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions