yogana
(Yogana)
April 30, 2020, 11:57am
1
Hello neo4j-community,
We are currently managing the neo4j cluster (Enterprise version 3.5.14
) through Kubernetes
.
We have a situation where neo4j should be able to accept multiple usernames & passwords on startup Currently we are setting the initial username & password using neo4j.yaml where the username & password are passed to neo4j using env variables like this :
- name: NEO4J_ACCEPT_LICENSE_AGREEMENT
value: "yes"
- name: AUTH_ENABLED
value: "true"
- name: NEO4J_AUTH
value: "neo4j/xyzsdaffqesaa"
Any suggestions/improvements to mitigate this problem are welcome.
Thank you.
yogana:
NEO4J_AUTH
please go through following article it talks about docker but would be helpful for you too.
opened 08:00AM - 15 Aug 18 UTC
closed 01:07PM - 10 May 19 UTC
I've been trying to set an initial password on my Neo4j docker container but it … doesn't appear to be doing anything. When I access the container the password is still set to the default which is neo4j. I'm passing in an environment variable based on the documentation I found (here)[https://neo4j.com/docs/operations-manual/current/installation/docker/]. When I try to set the password to something custom the password remains the default neo4j. However, if I say `NEO4J_AUTH=none` then the container respects that and uses no password.
This is the contents of my docker-compose.yml
```
version: "3.7"
services:
neo4j:
image: neo4j:latest
container_name: neo4j
volumes:
- ./persisted_data/neo4j/data:/data
ports:
# http and bolt access respectively
- 7474:7474
- 7687:7687
env_file:
- .env
```
This is my .env file which works
```
# neo4j auth as username/password
NEO4J_AUTH=none
```
This is my .env file which fails
```
# neo4j auth as username/password
NEO4J_AUTH=neo4j/anything_here_is_replaced_by_neo4j_as_the_password
```
what is believe you need to upgrade to higher version of Neo4j (3.5.6 or higher)