What's Your Idea?
Use Docker Secrets in the Docker Compose to enter the MariaDB password
Why Would This Be Helpful?
You won't have the database password in plain text in the yml or the .env file
Anything Else? (Optional)
This can be done by adding the following as a shell command.
if [ -n "$DATABASE_PASSWORD_FILE" ]; then
export DATABASE_PASSWORD=$(cat $DATABASE_PASSWORD_FILE)
fi
Want to Help Out?
I'm happy to help test and give feedback
Have You Considered Any Alternatives? (Optional)
No response
Before Submitting
What's Your Idea?
Use Docker Secrets in the Docker Compose to enter the MariaDB password
Why Would This Be Helpful?
You won't have the database password in plain text in the yml or the .env file
Anything Else? (Optional)
This can be done by adding the following as a shell command.
if [ -n "$DATABASE_PASSWORD_FILE" ]; then
export DATABASE_PASSWORD=$(cat $DATABASE_PASSWORD_FILE)
fi
Want to Help Out?
I'm happy to help test and give feedback
Have You Considered Any Alternatives? (Optional)
No response
Before Submitting
This is still vulnerable to the same issues as other approaches: It's available under
/proc/$PID/environin plain text. The correct way to implement this is to have our application read the values into its protected memory locations directly from the file.This is still a feature that should be implemented, and is still on our backlog. For those that REQUIRE storing secrets in a properly restricted file for their Grimmory deployment in a secure production environment:
We support configuration via the environment variable
S…