ClickhouseBuilder
ClickhouseBuilder copied to clipboard
set password and user in header
in http interface , the password can place in url
with paramater
$ echo 'SELECT 1' | curl 'http://localhost:8123/?user=user&password=password' -d @-
however , the password and username will be exposed in log system when the log system will log the uri .
so , it should support login by place user and password in header
instead of url
the example is blow
the user
in url replace by X-ClickHouse-User
in header and password
in url replace by X-ClickHouse-Key
in header
$ echo 'SELECT 1' | curl -H 'X-ClickHouse-User: user' -H 'X-ClickHouse-Key: password' 'http://localhost:8123/' -d @-