E.g. changing from auth_header = {"Authorization", "Basic: #{auth_hash}"} -> auth_header = {"Authorization", "Basic #{auth_hash}"} should fix this. I can submit a PR, if this change makes sense, but I suspect this would affect backwards compatibility.
When trying to connect to 21.7.4.18 version of CH, I get the following:
Judging from the implementation, it seems that the expected header is different from the one supplied: https://clickhouse.tech/codebrowser/html_report/ClickHouse/src/Server/HTTPHandler.cpp.html
E.g. changing from
auth_header = {"Authorization", "Basic: #{auth_hash}"}
->auth_header = {"Authorization", "Basic #{auth_hash}"}
should fix this. I can submit a PR, if this change makes sense, but I suspect this would affect backwards compatibility.