-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TBD] Passwords with $
in them break setup
#59
Comments
I think what is happening here is that if the password includes e.g. with 17 │ # Note: Must not include any spaces or uppercase letters.
18 │ COMPOSE_PROJECT_NAME=neurobagel_node
19 │
20 │ # ---- CONFIGURATION FOR graph ----
21 │ # Replace ADMINPASSWORD with the secure password you want to set for the admin user
22 │ NB_GRAPH_ADMIN_PASSWORD=ADMINPASSWORD
23 │ # Replace DBUSER with the username you want to set for your graph database user
24 │ NB_GRAPH_USERNAME=DBUSER
25 │ # Replace DBPASSWORD with the secure password you want to set for the created database user
26 │ NB_GRAPH_PASSWORD=DB$PASSWORD
27 │ # Replace my_db with the name you want to give your graph database
28 │ NB_GRAPH_DB=repositories/my_db
I get these logs from the graph
|
We want to keep our issues up to date and active. This issue hasn't seen any activity in the last 75 days.
|
Let's address this. Fix should be reasonably easy with string escape |
I was able to reproduce this on our Seems like single quotes is not sufficient as it results in an extra We should look into this more to see if there's another syntax / way to escape these special chars. |
As a workaround, we should switch to users storing their passwords in a separate text file and then pass the file itself as a secret to docker compose, a la https://docs.docker.com/compose/how-tos/use-secrets/#examples. This would entail:
|
🚀 Issue was released in |
Is there an existing issue for this?
Expected Behavior
Users should be able to define any random string as their passwords
Current Behavior
@barbarastrasser mentioned that when they created a
DB_PASSWORD
string with a$
in it, bad things happened.From my memory, the
$
got treated like a BASH variable and expanded, presumably into nothing (since it doesn't exist). The graphdb was set up with the `docker compose --full_stack up -d" but when executing ./add_data_to_graph.sh I couldn't add data. However, the db was accessible via the webinterface.Error message
No response
Environment
How to reproduce
We have to first reproduce this ourselves, I haven't yet seen the issue pop up. Again, @barbarastrasser if you have an example please share / comment
Step 1: Insert
$
in passwordStep 2: docker compose
Step 3: run add data script
Seems fine at first BUT after some investigation we found out that anything goes
and that there is no password set for the graphdb i.e. any password goes!!!
Anything else?
Atm we recommend
openssl rand -hex 16
as a way to create a random password - this specific command will create a string with only alphanumeric characters ([a-z][0-9]). But again, we should allow users to put any valid (ascii?) string as a password. So this still needs addressingThe text was updated successfully, but these errors were encountered: