[bitnami/apache] Missing proxy_http2_module
Name and Version
bitnami/apache 9.2.10
What steps will reproduce the bug?
- Install apache server with default values
- Log to apache container, e.g. kubectl exec -it apache-proxy-645b6dd479-hnmqs -- bash
- Go to /opt/bitnami/apache/modules or /opt/bitnami/apache2/modules
- I can't find module proxy_http2_module (mod_proxy_http2.so) in module directory for apache server
Are you using any custom parameters or values?
No
What is the expected behavior?
No response
What do you see instead?
I can't find module proxy_http2_module (mod_proxy_http2.so) in module directory for apache server
Additional information
No response
Hi,
Could you add more details on the use case this module covers? We want to be conservatives on the modules we add by default, as it increases the container size and (more importantly) the vulnerability surface.
The proxy_http2_module can cover following usecase, when backend service supports only HTTP/2 protocol, e.g:
- client <-(HTTP 1.1 plaintext/tls)-> apache server <-(HTTP/2 plaintext/tls)-> backend
- client <-(HTTP/2 plaintext/tls)-> apache server <-(HTTP/2 plaintext/tls)-> backend
Thank you for the feedback. I will forward this to the engineering team for evaluation. Note that, as this is not a critical feature, we cannot guarantee an ETA. For the time being, our advice is to create a fork of the bitnami/apache container and add the module: https://github.com/bitnami/containers/tree/main/bitnami/apache#customize-this-image
Ok, thank you for explanation and advice.
Hi @pikopl,
We have added the proxy_http2_module to our Apache container. Starting from tag 2.4.57-debian-11-r180 of our bitnami/apache container you can find the mod_proxy_http2.so file under the /opt/bitnami/apache/modules/ directory
root@8e49c7c3819b:/app# ls -larth /opt/bitnami/apache/modules/mod_proxy_http2.so
-rwxr-xr-x 1 root root 92K Oct 4 09:31 /opt/bitnami/apache/modules/mod_proxy_http2.so
Notice the module is disabled by default in Apache configuration (along with the http2_module)
root@8e49c7c3819b:/app# grep http2 /opt/bitnami/apache2/conf/httpd.conf
#LoadModule http2_module modules/mod_http2.so
#LoadModule proxy_http2_module modules/mod_proxy_http2.so
You can get more information on how to extend our image in the docs linked below
https://github.com/bitnami/containers/tree/main/bitnami/apache#extend-this-image
Hope it helps!