ClickhouseBuilder icon indicating copy to clipboard operation
ClickhouseBuilder copied to clipboard

set password and user in header

Open 769344359 opened this issue 2 years ago • 0 comments

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 @-

relative

769344359 avatar Aug 25 '22 04:08 769344359