Skip to content
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

Added fetching autoconfig data from Docker secrets #1515

Closed
wants to merge 3 commits into from
Closed

Added fetching autoconfig data from Docker secrets #1515

wants to merge 3 commits into from

Conversation

tushev
Copy link
Contributor

@tushev tushev commented Jun 15, 2021

This should solve #1148

This is my first PR. I'm not very familiar with Docker, however, I hope that this solves the issue.
I changed only .config/autoconfig.php , as far as I can understand these changes should propagate to, say, 21.0/apache/config/autoconfig.php automatically.

Please correct me if I'm wrong.

Another question to consider is the security of trim(file_get_contents(getenv('MYSQL_DATABASE_FILE')));. Theoretically, it is possible to specify any file, however, the very same approach is used in entrypoint.sh. Both the installation script and Docker secrets should be controlled by a privileged user. I see no issues with this, however, I'm not a security expert and thus I request a second opinion.

@tushev tushev closed this Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant