Fix ZBX_ALLOW_HTTP_AUTH being ignored in web frontend config

The web config redesign changed the HTTP-auth lookup from
getenv('ZBX_ALLOW_HTTP_AUTH') to env_bool('ALLOW_HTTP_AUTH', true),
dropping the ZBX_ prefix. The entrypoint (php.sh) still sets and exports
ZBX_ALLOW_HTTP_AUTH, and every web image README documents ZBX_ALLOW_HTTP_AUTH,
so the frontend now reads a variable that is never set and always falls back
to the default (true).

As a result, setting ZBX_ALLOW_HTTP_AUTH=false no longer disables HTTP
authentication in the frontend. Restore the documented variable name.
This commit is contained in:
saranf 2026-07-06 20:26:51 +09:00
parent 46eadea74a
commit 694162e2a7

View file

@ -100,7 +100,7 @@ $SSO['IDP_CERT'] = resolve_file('/etc/zabbix/web/certs/idp.crt', 'ZBX_SSO_IDP_CE
$SSO['SETTINGS'] = env_json('ZBX_SSO_SETTINGS');
$ALLOW_HTTP_AUTH = env_bool('ALLOW_HTTP_AUTH', true);
$ALLOW_HTTP_AUTH = env_bool('ZBX_ALLOW_HTTP_AUTH', true);
$ZBX_SERVER_TLS['ACTIVE'] = env_bool('ZBX_SERVER_TLS_ACTIVE');
$ZBX_SERVER_TLS['CA_FILE'] = resolve_file('', 'ZBX_SERVER_TLS_CAFILE');