httpd-exec-surface-gate: positive control covers the multi-FPM balancer path and brotli
A WHP site with more than one FPM backend is rendered as <Proxy balancer://> + BalancerMember + `ProxySet lbmethod=byrequests` (panel/internal/vhost/ httpdtpl/render.go buildProxyBlock), which needs proxy_balancer, lbmethod_byrequests and slotmem_shm. None of the three was in the required list, so a future image change dropping them would pass this gate and take every multi-backend site down. brotli_module was named in the comment but not in the list. The comment's "status for /ping-style probes" was wrong (/ping is a mod_rewrite R=204 in the default vhost) and is gone. Also documents that a later `dnf update` of httpd-core restores the deleted .so / %config files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
8fbbd6d160
commit
2a6e2d554e
1 file changed
+22
-11
@@ -33,22 +33,33 @@ MODDIR=${HTTPD_MODDIR:-/etc/httpd/conf.modules.d}
|
|||||||
SODIR=${HTTPD_SO_DIR:-/usr/lib64/httpd/modules}
|
SODIR=${HTTPD_SO_DIR:-/usr/lib64/httpd/modules}
|
||||||
|
|
||||||
# Positive control: modules the WHP platform relies on. Derived from
|
# Positive control: modules the WHP platform relies on. Derived from
|
||||||
# web-files/configs/shared-vhost-template.tpl (rewrite, proxy_fcgi via
|
# web-files/configs/shared-vhost-template.tpl + panel/internal/vhost/httpdtpl
|
||||||
# SetHandler proxy:fcgi + ProxyFCGISetEnvIf, ssl, setenvif/env for the
|
# (rewrite, proxy_fcgi via SetHandler proxy:fcgi + ProxyFCGISetEnvIf, and for a
|
||||||
# healthcheck log filter, dir, authz_core, log_config, alias, mime, negotiation
|
# site with more than one FPM backend <Proxy balancer://> + BalancerMember +
|
||||||
# for `Options MultiViews`), shared-httpd-security.conf (mime_module
|
# `ProxySet lbmethod=byrequests`, which need proxy_balancer, lbmethod_byrequests
|
||||||
# RemoveOutputFilter, authz_core, core <If>/<DirectoryMatch>), the cac
|
# and slotmem_shm; ssl, dir, authz_core, log_config, mime, negotiation for
|
||||||
# entrypoint (remoteip, unixd, mpm_event, socache_shmcb for SSLSessionCache) and
|
# `Options MultiViews`), shared-httpd-default-vhost.conf (rewrite R=204 /ping,
|
||||||
# the .htaccess features WordPress/cPanel imports use (headers, expires,
|
# setenvif for the healthcheck log filter), shared-httpd-security.conf
|
||||||
# deflate, brotli, autoindex, auth_basic/authn_file/authz_user/authz_host,
|
# (mime_module RemoveOutputFilter, authz_core, core <If>/<DirectoryMatch>), the
|
||||||
# access_compat, filter, version, reqtimeout, status for /ping-style probes).
|
# image (alias for `Alias /ping`, remoteip, unixd, mpm_event, socache_shmcb for
|
||||||
|
# SSLSessionCache) and the .htaccess features WordPress/cPanel imports use
|
||||||
|
# (headers, expires, deflate, brotli, env, autoindex,
|
||||||
|
# auth_basic/authn_file/authz_user/authz_host, access_compat, filter, version,
|
||||||
|
# reqtimeout). A tenant .htaccess naming a directive of a module that is not
|
||||||
|
# loaded answers 500, so every module here is load-bearing.
|
||||||
|
#
|
||||||
|
# The .so files removed below belong to the httpd-core RPM. A later `dnf update`
|
||||||
|
# / `dnf reinstall` of httpd-core in a derived image or a later layer restores
|
||||||
|
# them (and the deleted %config files 00-dav.conf / 01-cgi.conf): run `check`
|
||||||
|
# after any package step that comes after `remove`.
|
||||||
REQUIRED_MODULES='mpm_event_module unixd_module log_config_module logio_module
|
REQUIRED_MODULES='mpm_event_module unixd_module log_config_module logio_module
|
||||||
authz_core_module authz_host_module authz_user_module authn_core_module authn_file_module
|
authz_core_module authz_host_module authz_user_module authn_core_module authn_file_module
|
||||||
auth_basic_module access_compat_module
|
auth_basic_module access_compat_module
|
||||||
mime_module dir_module autoindex_module alias_module setenvif_module env_module
|
mime_module dir_module autoindex_module alias_module setenvif_module env_module
|
||||||
negotiation_module rewrite_module headers_module expires_module deflate_module
|
negotiation_module rewrite_module headers_module expires_module deflate_module brotli_module
|
||||||
filter_module remoteip_module reqtimeout_module version_module socache_shmcb_module
|
filter_module remoteip_module reqtimeout_module version_module socache_shmcb_module
|
||||||
ssl_module proxy_module proxy_fcgi_module'
|
ssl_module proxy_module proxy_fcgi_module
|
||||||
|
proxy_balancer_module lbmethod_byrequests_module slotmem_shm_module'
|
||||||
|
|
||||||
cmd_remove() {
|
cmd_remove() {
|
||||||
local p m
|
local p m
|
||||||
|
|||||||
Reference in new issue
Block a user