-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
[Bug]: Docker secrets (with var _file) does not work anymore #2788
Comments
Just to confirm it sounds like you are using docker swarm? I have not tested the set up in docker swarm and have limited knowledge about the underlying infrastructure. What are you referring to with this string If you are referring to the password variable for the database however it should be |
I'm actually experiencing the same issue, in normal docker compose If i set When trying to use secrets, LEAN_DB_PASSWORD_FILE does not, despite secret being properly populated to a /run/secrets file, load the password from the file during bootstrap. Instead, the app throws an exception resulting in the same error stated by OP: I logged into the container, and, assuming
|
See also in the readme under subject docker secrets: https://github.com/Leantime/docker-leantime/blob/master/README.md So in readme it's saying that's is supported by leantime. |
Ah, I see. Yeah the checks for the _FILE reference got lost in our start shell script. I have a PR ready to add them back and will rebuild the images: Leantime/docker-leantime#89 |
I can open a new issue, but I'd love to see support for a few additional environment vars being passed to the bootstrap script via secrets
the less info about my infrastructure i can (even potentially) expose, the better |
In Leantime/docker-leantime#90 i added all the _FILE |
What is your set up?
Cloud Hosted
Version
3.3.0
Describe the issue
When i try version 3.2.x and 3.3.0 i got the error Cannot connect to database in browser.
When i do the downgrade to 3.1.4, every thing works fine.
When i check the logs of my database i see that leantime tried to login without an password.
2024-11-03 14:36:09 3 [Warning] Access denied for user 'leantime'@'10.0.7.11' (using password: NO)
In my docker-compose im using the option LEAN_DB_PASSWORD_FILE (so as described in manual).
See also my note in bug #2735
When i do a downgrade to 3.1.4, every thing is working fine again.
Reproduction steps
Additional Notes
Please let me know if i can assist with testing.
The text was updated successfully, but these errors were encountered: