feat(apache2-foreground,Dockerfile-linux.template): Add support for TLS/HTTPS in Apache2, based on base64 files in ENV#1559
Conversation
…LS/HTTPS in Apache2, based on base64 files in ENV Signed-off-by: lordrobincbz <robincrombez.pro@gmail.com>
|
Hello @tianon , sorry to ping you but Ive seen that you are the main contributor here. Can you have a look on this PR ? I really think that this feature would be great for global security of PHP and Apache based applications :) |
|
Usually certificates in Kubernetes are stored as secret and can easily be mounted to the desired location which removes the need for this. |
|
So you need a volume. Here with this proposal you just need the same secret, but without volume. With this upgrade, multiples application (like PhpMyAdmin, Symfony, Nextcloud etc) that use this image as base will handle TLS without any modifications or customization with Dockerfile. Its work with secret for K8S, but with simple infrastructure like vanilla Docker or Swarm, we need a reverse proxy for TLS. Now we dont need it anymore. |
|
Hello, any further information about this pr ? |
You should probably rebase it first |
|
Sorry for the delay; unfortunately, this is functionality that we are not interested in maintaining directly here -- given that it's at the very start of |
Description
This PR introduces a script enhancement to allow setting SSL certificates and keys directly from base64 encoded environment variables. This change is aimed at maintaining stateless environments in Docker/Kubernetes and securing communications.
Changes
Benefits
Tests done
Here one screen, of a working Apache2 server with HTTLS ready for hosting PHP application:
This is a major improvement as it secures entire stacks and is particularly beneficial for applications using PHP and Apache.
EDIT: I dont know how to edit the README to add new vars: