What is the best way to store passwords and use them in Dockerfile and docker-compose.yaml. Can I store the secrets in a hashed format and make use of it, So that no one can read my real passwords even if they have physical access. Or else, is there any alternative way to achieve something similar...
Asked
Active
Viewed 85 times
0
-
1Use them for what? – vidarlo Jun 30 '23 at 15:46
-
For Docker and Docker-Compose – zakadmin Jun 30 '23 at 16:04
-
What are the passwords ***actually*** used for? Repeating that you use them for docker and docker-compose is repeating the headline of your question. Please describe the problem you're attempting to solve in *some more detail*. A hash is for instance not useful if you need to send the *password* somewhere. – vidarlo Jun 30 '23 at 17:29
-
It can be anything containerized. However, mostly I think password variables are required for databases such as mysql. I am looking for a common solution. – zakadmin Jun 30 '23 at 18:39
-
Your question doesn't make any sense to me even after reading your comments, and I don't you'll get any good answers unless you spend some time to [edit] it so it better explains what passwords you're talking about. – vidarlo Jun 30 '23 at 22:06