Jira Link: DB-21770
Description
Description
Enabling Web UI authentication via --webserver_password_file prevents
yb-master / yb-tserver from starting. The embedded webserver (squeasel)
rejects the config option name, so the process exits.
Version
2025.2.3.0-b149 (also present on master)
Steps to reproduce
- Create an htpasswd file readable by the process.
- Add to master.conf (or tserver.conf):
--webserver_password_file=/path/to/.htpasswd
--webserver_authentication_domain=YugabyteDB
- Start yb-master.
Actual
Webserver: Invalid option: global_passwords_file
Webserver: Could not start on address 0.0.0.0:7000
Expected
Webserver starts with HTTP digest auth enabled.
Root cause
src/yb/server/webserver.cc passes the option as "global_passwords_file",
but the bundled squeasel registers it as "global_auth_file"
(GLOBAL_PASSWORDS_FILE is only the internal enum index). The unknown
name makes sq_start() fail, so the webserver — and the whole process — won't start.
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information
Jira Link: DB-21770
Description
Description
Enabling Web UI authentication via
--webserver_password_filepreventsyb-master / yb-tserver from starting. The embedded webserver (squeasel)
rejects the config option name, so the process exits.
Version
2025.2.3.0-b149 (also present on master)
Steps to reproduce
--webserver_password_file=/path/to/.htpasswd
--webserver_authentication_domain=YugabyteDB
Actual
Expected
Webserver starts with HTTP digest auth enabled.
Root cause
src/yb/server/webserver.cc passes the option as "global_passwords_file",
but the bundled squeasel registers it as "global_auth_file"
(GLOBAL_PASSWORDS_FILE is only the internal enum index). The unknown
name makes sq_start() fail, so the webserver — and the whole process — won't start.
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information