-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Improve handling of secret variables and files in autoconfig #2141
Improve handling of secret variables and files in autoconfig #2141
Conversation
In the recent state, the autoconfig feature required either all database secrets to be passed as environment variables, or all to be passed as secret files, but didn't allow to use a mix of these variants, e.g. passing the database user and name as environment variables, and only the password as a file. This is now fixed and allows working with database values the same way, as the Postgres and MySQL/MariaDB images do; with mixed variants also. Signed-off-by: Patrick Hobusch <patrick@hobusch.net>
@J0WI 👀 |
Hello @J0WI @joshtrichards how can I help to move this forward? |
@J0WI I think the logic of my PR is a bit better, because it also checks the existence of the files. But tbh there seems something wrong with Nextcloud. In my deployment I manually needed to set the It would be nice to move the PR forward, please let me know how I can help... |
Unfortunately, the way this PR was (not) handled led me to the conclusion that this image is not suitable for production. Since the AIO image violates basic Docker principles, I will replace my Docker-based pilot setup with the service from NixOS. |
Where precisely are you seeing references to (or a dependency on) this variable ( For what it's worth, I just brought up a from scratch test stack with the Apache v28 image with PostgreSQL and had no problems. |
In the recent state, the autoconfig feature required either all database secrets to be passed as environment variables, or all to be passed as secret files, but didn't allow to use a mix of these variants, e.g. passing the database user and name as environment variables, and only the password as a file.
This is now fixed and allows working with database values the same way, as the Postgres and MySQL/MariaDB images do; with mixed variants also.