Skip to content

Cleanup passwords from inside the query in the command line parameter. #65549

@alexey-milovidov

Description

@alexey-milovidov

We already cleanup passwords from the command line, so if the user writes

clickhouse-client --password mysecret --query "SELECT 1"

and then run ps, it will appear as

clickhouse-client --password --query "SELECT 1"

But we don't do it if a password appears inside a query:

clickhouse-client --query "SELECT * FROM s3('s3://test/hello.csv', 'ASIAIOSFODNN7EXAMPLE', 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY')"

It should be presented as:

clickhouse-client --query "SELECT * FROM s3('s3://test/hello.csv', '', '')"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions