-
Notifications
You must be signed in to change notification settings - Fork 38
disable apache cgi-bin because dolibarr doesn't seem to use it #46
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
Conversation
|
Hello @JonBendtsen, I don't think we need this PR if we add a way to disable the modules here in this PR #47. That would be much more convenient. |
No, because even if people can use PR #47 to disable this module - why would they have to do it? The dolibarr container should be a safe as possible, and it does not need the CGI-BIN inside apache. Leaving cgi-bin in would slightly increase the risk of someone potentially placing a file in there which then can be execute. It is safer that we simply disable the apache configuration that by far most dolibarr installations that uses the this dolibarr container will end up having. Safety first. |
|
Hi @JonBendtsen, The defaults of See config file for example: The problem here is not that we don't want to secure Apache installation but rather that we should do so while keeping the image minimal (feature wise) and less opinionated as possible. Let me think about it. |
True? but why keep it in if we don't need it for Dolibarr? |
| vim-tiny \ | ||
| cron \ | ||
| && apt-get autoremove -y \ | ||
| && a2disconf serve-cgi-bin \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this to another RUN instruction just after this one and before the "Get Dolibarr" one?
Something like this:
# Disable useless Apache modules to provide safe defaults
RUN a2disconf serve-cgi-bin|
Since there is a consensus for the base image to provide sane (and safe) defaults, let's move on with this PR. On a side note I would be great to check the list of enabled apache modules and use this PR to disable all modules who does not need to be enabled. If the user is willing to enable a module this could be done using the custom init scripts like @tuxgasy explained in another PR. Cheers, |
|
replaced by #54 |
|
Closing as superseded by #54. |
disable apache cgi-bin because dolibarr doesn't seem to use it and then the container should not have it by default